Results 1 to 3 of 3

Thread: RESOLVED! Booking Form Javascript Question

  1. #1
    Join Date
    Nov 2010
    Posts
    24
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Question RESOLVED! Booking Form Javascript Question

    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

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    What would the user be booking for? And whats the numbers (eg. option a = 100$ * (people/2) + miles? )
    Jeremy | jfein.net

  3. #3
    Join Date
    Nov 2010
    Posts
    24
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Nile View Post
    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


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •