dreamweaver training - web calculators
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Dreamweaver Training and help » dreamweaver training - Web 'Calculators'

dreamweaver training - Web 'Calculators'

resolvedResolved · Low Priority · Version Standard

replyReply Sun 9 Sep 2007, 22:59Delegate Sean said...

Sean has attended:
Dreamweaver 8 Introduction course

Web 'Calculators'

Hi Trainer, if I want to incorporate a form into a page into which you enter data which when submitted returns a result, like a typical mortgage calculator for example, what type of application would I have to sit behind Dreamweaver? Would Excel suffice and where can I find some info on linking the two? Thanks in advance, Sean

For upcoming training course dates see: Pricing & availability

replyReply Mon 10 Sep 2007, 15:31Trainer Rich said...

RE: Web 'Calculators'

Sean,

I'd use Javascript for instant results (ie. the figures change in front of the user's eyes as they type), or a server-side scripting language (CGI) such as PHP, ASP, .NET or Perl if you don't mind your user inputting data then hitting 'submit', and the page returning the answer.

To run the server side scripts, the appropriate settings will need to be set up on your web server. For example, if you have Windows hosting then your site will most likely run on IIS, which includes ASP and sometimes .NET by default. Whereas PHP is most likely to be installed if your server is Apache/Linux.

A simple calculator is easy enough to program in either Javascript or PHP, you just need to know a bit of syntax.

For example, in PHP, you can have a form with various fields, then PHP code might look like this:

<?php
$value1 = $income * $rate;
$value2 = $interest * $income;
$total = $value1 / $value2;
print "You're total is $total";
?>

Some links to help you get started:
http://www.javascriptkit.com/script/cut18.shtml
http://www.w3schools.com/js/default.asp
http://www.w3schools.com/php/default.asp

You can't really link Excel to a web page for this, because your users would all need to have Excel installed, and not everyone does. But even then, I don't think you can link that software package with any web pages.

Hope this helps,
Rich

 

Dreamweaver tip:

Viewing you page in the browser

If you are working in design view you can quicky preview your webpage by pressing the F12 key

View all Dreamweaver hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard