Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14
  1. #1
    Member Cranky's Avatar
    Join Date
    Aug 2002
    Location
    Durham, UK
    Posts
    34
    Member #
    171
    Hi

    I'm having a little trouble in creating a multiple page order form for my website. Basically what I want is the order form to comprise of around 4 pages which each carry the data inputted on the four forms to the next page and the last page passes all the data to the credit card processor.

    It all works fine on a single page, but that's no use because the page is far too tall.

    Here's an example.....

    1. Page1.php - user enters "name" and "address" and click next.
    2. Page1.php forwards the data to Page2.php?name=HARRY&address=123+My+Street and asks for "phone" and "email"
    3. Page2.php forwards to card processors script - http://www.payme.com/sale.asp?name&address&phone&email

    ... any ideas? I'm open to using anything really, CGI/Perl, PHP, Python, Javascript (multi-browser compatible) or good old HTML.

    Any help would be appreciated as I need this completing this weekend really.... thanks! :classic:
    Thanks,

    Andrew Cranson
    Transnexis Group

  2.  

  3. #2
    Senior Member nsr81's Avatar
    Join Date
    Oct 2002
    Posts
    1,132
    Member #
    250
    Liked
    15 times
    Use sessions in PHP.

    2nd page will get all the variables submitted from the first page, and register them in a session. 3rd page will register 2nd page's variables in the same session. 4 page will get all the variables from the session and 3rd page and make a long URL for payme.com and forward the person to it.

    Session are good if you want to allow your customers to be able to go back to one of the previouse pages and edit stuff.
    There and Back Again :Ogre:

  4. #3
    Member Cranky's Avatar
    Join Date
    Aug 2002
    Location
    Durham, UK
    Posts
    34
    Member #
    171
    Thanks - know of any quick tutorial or anything that'll help me get it up and running ASAP?
    Thanks,

    Andrew Cranson
    Transnexis Group

  5. #4
    Member Cranky's Avatar
    Join Date
    Aug 2002
    Location
    Durham, UK
    Posts
    34
    Member #
    171
    Yey!!! I've got it .... thanks for the help!!!

    LOL
    Thanks,

    Andrew Cranson
    Transnexis Group

  6. #5
    Senior Member nsr81's Avatar
    Join Date
    Oct 2002
    Posts
    1,132
    Member #
    250
    Liked
    15 times
    ok, let me know if you need more help. I'll get working example for you.
    There and Back Again :Ogre:

  7. #6
    Member Cranky's Avatar
    Join Date
    Aug 2002
    Location
    Durham, UK
    Posts
    34
    Member #
    171
    Hi

    I'm not too sure I'm actually using the PHP sessions though lol ... simply using <?php echo $previouspagesfieldname?> as the value for a hidden form field on the next page...
    Thanks,

    Andrew Cranson
    Transnexis Group

  8. #7
    Senior Member nsr81's Avatar
    Join Date
    Oct 2002
    Posts
    1,132
    Member #
    250
    Liked
    15 times
    let me do a simple example with one field on each page
    There and Back Again :Ogre:

  9. #8
    Member Cranky's Avatar
    Join Date
    Aug 2002
    Location
    Durham, UK
    Posts
    34
    Member #
    171
    ok np...
    Thanks,

    Andrew Cranson
    Transnexis Group

  10. #9
    Member Cranky's Avatar
    Join Date
    Aug 2002
    Location
    Durham, UK
    Posts
    34
    Member #
    171
    <quote><input type="hidden" name="fname" value=<?php echo $fname?>>
    <input type="hidden" name="address" value=<?php echo $address?>>
    <input type="hidden" name="city" value=<?php echo $city?>>
    <input type="hidden" name="zip" value=<?php echo $zip?>>
    <input type="hidden" name="country" value=<?php echo $country?>>
    <input type="hidden" name="email" value=<?php echo $email?>>
    <input type="hidden" name="state" value=<?php echo $state?>>
    <input type="hidden" name="telephone" value=<?php echo $telephone?>></quote>

    That's what I'm using on the "receiving" page...
    Thanks,

    Andrew Cranson
    Transnexis Group

  11. #10
    Member Cranky's Avatar
    Join Date
    Aug 2002
    Location
    Durham, UK
    Posts
    34
    Member #
    171
    ... one minor glitch ... if someone enters an address for example with a space ... e.g. "123 My Street" the form only forwards the "123" bit. Any ideas?
    Thanks,

    Andrew Cranson
    Transnexis Group


Page 1 of 2 1 2 LastLast

Remove Ads

Posting Permissions

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

Search tags for this page

creating a multi-page order form using php

,

multi page order php

,

php multiple order form

,

php order form

Click on a term to search for related topics.
All times are GMT -6. The time now is 12:32 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com