troubleshooting Question

php header function probs

Avatar of MirageSF
MirageSF asked on
PHP
11 Comments1 Solution274 ViewsLast Modified:
<?php
$mailadres="anyoldemail.com";
$subject="";
$from ="From: \"DOMAIN.COM\" <support@DOMAIN.com> ";
$body="";
mail($mailadres,$subject,$body,$from);
header( "Location: http://www.where_you_want_to_go.com/" );
exit;
?>

Hi, im using the above code to forward to 2checkout.com for order processing, a form of variables is taken before this page, and the variables work fine, the email is sent correctly etc, but once the header bit executes to the 2checkout site the variables are no longer existed, I know they work fine as I set the form to send directly to 2checkout and it works, I can also get the above to email me form contents, but for some reason they are gone once the header is executed, any ideas ?

Regards
ASKER CERTIFIED SOLUTION
Steves2001

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 11 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 11 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros