Form Submit (2 Actions?)
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">
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.
Any chance of an example of that? I'm pretty new to php / form stuff.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)