PDA

View Full Version : RESOLVED! Booking Form Javascript Question



suction cup
11-25-2010, 08:21 PM
Hi!

I'm looking to make a booking form similar to the one here:

http://www.cromwellcars.com/

The price returned is based on the input fields.

I haven't yet found a completed script for anything similar.

Any suggestions of how to proceed? (I'm pretty new to this kind of thing).

Many Thanks in advance.

Best Wishes

Nile
11-25-2010, 08:58 PM
What would the user be booking for? And whats the numbers (eg. option a = 100$ * (people/2) + miles? )

suction cup
11-25-2010, 10:00 PM
And whats the numbers (eg. option a = 100$ * (people/2) + miles? )

Hey Nile,

Thanks for your reply.

The user would be choosing between:

1. Start Point (650+ options, all the various locations in the city)
2. Finish Point (650+ options again)
3. No. passengers (6 options)

OR

1. Trip Duration (10 options)
2. No. passengers (6 options)

Now, I really don't know how this sort of thing is usually approached in Javascript. So far, I haven't found any completed scripts to check out. A few ideas are as follows: (just mentioning the Start to Finish option here, as this is the more challenging...):

650 to the power 2 is a lot of options! Perhaps there could be various 'price bands' stored somewhere, e.g.:

BAND 1: 25

City to Airport
Centre to Railway Station
Market St to Picadilly

etc

BAND 2: 50

Railway to Airport

etc etc etc

And then the choice would be referenced to whichever 'band' it is in.

Passenger choice could apply a calculation to the result of that stage, e.g.

1 passenger apply *1.5
2 passengers apply *1.7

etc...

I'd be interested to know how you would approach all this...

Best Wishes

:)