Posted by Ian Rutgers on 05/18/06 03:01
"robert" <ab@no.spam-alama-ding-dong> wrote in message
news:yCNag.267$Ua2.79@fe05.lga...
>| I tried header("Location:
> | ../thankyou.php"); ... but nothing happens.
>
> header('location:../thankyou.php');
> exit;
>
> also, do you get an error? i imagine you would. is thankyou.php one
> directory back from this page?
>
>
yes it is ... tried your suggestion ...
if($email_address!=""){
if (checkemail($email_address)){ //is the email address valid
$mailout->send();//send email(s)
header('location:../thankyou.php');
exit;
}
else{
?>
<span style="color:red; font-weight:bold;">
<?
echo $errorMsg;
?>
</span>
<?
}
}
....still didn't do a redirecti ... even put the thank you page in the same
folder as the other php file. In that case I get an error message:
"Warning: Cannot modify header information - header already sent by (output
started at ... url of file) in file name on line 332"
Navigation:
[Reply to this message]
|