Results 1 to 3 of 3

Thread: Form Submit (2 Actions?)

  1. #1
    Join Date
    Aug 2009

    Form Submit (2 Actions?)

    Hey guys,

    Just working on this little site: http://www.noveltymug.co.uk/personalised/

    Basically, user will enter, Name, Email, Phone number and then a message. Select a file to upload which then redirects to: http://www.noveltymug.co.uk/thankyou.php where they would click buy now and pay via paypal. How do I get it to do it all in one which would submit all the details to me and then straight to paypal?

    The form details are: <form id=form name=form action=http://www.noveltymug.co.uk/personalised/personalised.php method=post onsubmit="return validate_form ( );" enctype="multipart/form-data"> on the first page and the paypal code is:

    <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="hidden" name="hosted_button_id" value="9698071">
    <input type="image" src="https://www.paypal.com/en_GB/i/btn/btn_buynow_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">
    <img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1">

    Thanks guys,


  2. #2
    Join Date
    Nov 2008
    The easiest way is probably to perform a redirect using the header() function once the data has been processed. This also gives you the option of re-displaying the form in case validation fails.

  3. #3
    Join Date
    Aug 2009
    Any chance of an example of that? I'm pretty new to php / form stuff.



Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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