Link to home
Start Free TrialLog in
Avatar of bbengs
bbengs

asked on

Mathematical form fields

I have FP2003 running on a W2k3 server with W2k3 Excange all on the same server.  I have a feedback form on the website that works fine.  The only issue is that I would like to have a field at the bottom of the page that will show different total prices based upon the services that they chose above.  Any ideas on how to set this up?

P.S.  I am new to EE, so any advise on how to gain points would be helpful.
Avatar of rcmb
rcmb

Well to begin with 50 points does not draw much attention.

To do your math you need to be submitting to an ASP page.

On the ASP page you can perform math without any issues like

Lets say your form has two drop-downs where they select items

Item A cost would be $52.39
Item B cost would be $25.25

In your confirmation.asp page all you need to do is

Total price = $<%=(request("ItemACost") + request("ItemBCost"))%>

This would calculate the results of what was submitted from the form.

RCMB
Avatar of bbengs

ASKER

First of all, thanks RCMB for the advise on the points.  I will start to post my future questions with a higher value.

I would also like to apologize for not completetly indicating all of my desired features.  But I would like for the value to automatically update on the same page as the selected fields.  For example:

There is a standard fee of $100 for the service, plus the users selects optional services from two drop down menus.  The drop down menus are simple, either yes or no to select the service.  So there are 4 different possible values. As the user selects a service, the total cost at the bottom of the page will automatically update.

I have seen this functionality of different pages, and would like to incorporate it.  If this is not possible, I would then like for there to just be an update button on the page that the user can select to show an updated price based on there selected features.

I am fairly new to both FrontPage, programming, and scripting.  Any and all help is greatly appreciated.
Avatar of bbengs

ASKER

Increased point value!!!
ASKER CERTIFIED SOLUTION
Avatar of hhammash
hhammash

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial