I've been having a pretty dumb problem as of late.
I'm using the header function to redirect to a confirmation page. I'm declaring $error = false at the top of the php sendmail page.
Here is the conditional on the sendmail page:
if($error)
{
header('Location: http://www.url.com/confirmation.php
error='.$error.'type=cell&desc=' . $message);
}
else {
header('Location:http://www.url.com/confirmation.phperror='.$error.
'&type=cell&fname=' . $inputFName .'&lname=' . $inputLName . '&email=' .
$inputEmail . '&phnum=' . $inputPhnum . '&model=' . $inputModel .
'&color=' . $inputColor . '&desc=' . $inputSummary);
}
The problem I'm getting is, when I look at the URL and the get variables, the error portion is empty. For example, my url will look like: confirmation.php?error=&type=cell&fname=Test&lname=Name&email=test@test.com..... etc...
For some reason the error variable is NOT being passed. What's the problem?