Complex form with variables
Posted: Fri Sep 18, 2009 3:40 pm
Hello guys,
I'm working actually for a limousines site, where the final client rent a ride with the super-cars.
The thing is that in the main Page I need a complex form, where the user will fill a "From" field and a "To" field, and select number of passengers (which would affect to the final price, as a variable).
The resulting page should print the kilometers and price, as well as a button storing the price as a value to send to PayPal.
The starting and ending points fields would use Google Maps to process and provide the covered distance as seen here: http://briancray.com/2009/06/23/calcula ... -maps-api/
Then I should take that distance, and multiply it by 100$ (100$ per Km for example).
And, if there was several passengers, add 100$ per extra passenger.
Problem : I never tried to do something similar. I know how to retrieve data from a database with PHP (I work usually with WordPress), but there, I'm a bit lost.
Do you think is easy ? There's some script avaliable that I should check, having a similar way of work ? The Google API is working for me, but I'm unable to mix a variable there, or turn Km in $...
Thanks for any tip,
I'm working actually for a limousines site, where the final client rent a ride with the super-cars.
The thing is that in the main Page I need a complex form, where the user will fill a "From" field and a "To" field, and select number of passengers (which would affect to the final price, as a variable).
The resulting page should print the kilometers and price, as well as a button storing the price as a value to send to PayPal.
The starting and ending points fields would use Google Maps to process and provide the covered distance as seen here: http://briancray.com/2009/06/23/calcula ... -maps-api/
Then I should take that distance, and multiply it by 100$ (100$ per Km for example).
And, if there was several passengers, add 100$ per extra passenger.
Problem : I never tried to do something similar. I know how to retrieve data from a database with PHP (I work usually with WordPress), but there, I'm a bit lost.
Do you think is easy ? There's some script avaliable that I should check, having a similar way of work ? The Google API is working for me, but I'm unable to mix a variable there, or turn Km in $...
Thanks for any tip,