Re: Form Process Question

[email protected] ("Gary")
Newsgroups php.general
Message-ID <[email protected]>
2. Yea, I was trying to avoid that.  I am thinking about putting this one 
input form into a separate section, have the action file open in a separate 
window to keep the original (long with lots of required fields) intact, 
maybe even some behavior pop up.

Thanks for your help.

Gary


"Shawn McKenzie" <[email protected]> wrote in message 
news:[email protected]...
> Gary wrote:
>> I have a client that I have made some forms for.  On one of the forms, 
>> their
>> customers are to registar for a class.  The cost of the class is 195 per
>> person.  She would like to have the people be able to have the total cost
>> calculated for them before they submit the form. (I already have the cost
>> calculated in the email and result page).
>>
>> I thought about creating a separate form within the original form page 
>> that
>> could calculate the cost, and process it to itself, I suppose I would 
>> need
>> to create a session so all the information in the first form is not wiped
>> out.
>>
>> Is there an easier way to do this or is there a way to create this
>> calculator that changes upon the input instead of clicking a calculate
>> button?
>>
>> Thanks
>>
>> Gary
>>
>>
>>
>
> You have two options as I see it:
>
> 1.  Use some javascript that calculates onchange of the form controls.
> 2.  Have a continue/submit button that posts back to the same page that
> does a calculate on submit and show a confirmation page with the total
> and then a finish button.
>
> -- 
> Thanks!
> -Shawn
> http://www.spidean.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.