Hello, I'm trying to accomplish a booking form for my clients website to accept payments via PayPal, the form goes like this... Name: ........................... Telephone: ...................... Number of Children: ......... Number of Adults: ......... Optional Requirements: ................ .............................................. The two fields for Number of Children and Adults, i want a dropdown where the user can select [1,2,3,4...e.t.c] the price for 1 child is £15 and 1 adult £25. When the user submits the form i want to calculate the final cost from there requirements... example, the user submits 2 children and 1 adult, so the final cost is £55. Any help appreciated
I would develope it as two seperate scripts and then combine it into one. Makes it far easier to to test and identify the bugs that way. Start by creating the form where the user enters that information and post it to another script. This first part is a simple html form. The second part is where the mayh and caculations take place, the order is written to the database or mailed to you and the pay link to Paypal is generated. Once you have both parts working you can easily combine them into a single script if you like. That should get you started.
Thanks Colbyt for the quick response, Isn't there a simplier way with just html? is there a script you know of?
You can get the raw information with just html. If html can do computations I have never done it. This isn't all that complicated if you don't need the database part. Though I am not sure how you would get the information witout it. This search string on google scored a bunch of hits: reservations +script +paypal