View Full Version : paypal submit problem and email form?

11-14-2005, 12:14 AM
Here's the problem with my paypal submit. The customer fills out an email form and when they submit it goes to a new page - I've used the php script on the tutorial. My question is, how can I get them back to the paypal submit button on the previous page?

11-14-2005, 12:38 AM
I just want to add a bit more. I would like a few seconds delay before it goes back.

11-14-2005, 08:33 AM
I am sorry i dont understand exactly what you want. please re-explain.

11-14-2005, 04:52 PM
Okay, say someone fills out my form (contact.html) After submitting the form it takes them to the next page (contact.php) and tells them I've recieved it. The problem I have is that they still have to pay with the paypal button and that button is on the previous page. How can I get them back to the contact.html page?

Here is the script I've used.

<TITLE>Succesfully processed your order</TITLE>
<H2>Thanks for your order!</H2>

$email = $HTTP_POST_VARS[email];
$mailto = "order@example.com";
$mailsubj = "Enter Your Subject Here";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form:\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
$mailbody .= "$key : $val\n";
mail($mailto, $mailsubj, $mailbody, $mailhead);

11-14-2005, 05:39 PM
You should make them pay first..Paypal has a feature that alows you to redirect them to any page you want after the payment is made.