Require simple PayPal Form for bookings?

Discussion in 'PayPal' started by StrangeLife, Mar 14, 2009.

  1. #1
    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 :)
     
    StrangeLife, Mar 14, 2009 IP
  2. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #2
    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.
     
    Colbyt, Mar 14, 2009 IP
  3. StrangeLife

    StrangeLife Well-Known Member

    Messages:
    269
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    140
    #3
    Thanks Colbyt for the quick response,
    Isn't there a simplier way with just html? is there a script you know of?
     
    StrangeLife, Mar 14, 2009 IP
  4. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #4
    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
     
    Colbyt, Mar 14, 2009 IP