98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Dreamweaver Training and help » dreamweaver training - Web 'Calculators'
dreamweaver training - Web 'Calculators'
Resolved · Low Priority · Version Standard
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
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
Training information:
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Dreamweaver tip:Viewing you page in the browserIf you are working in design view you can quicky preview your webpage by pressing the F12 key |