You are here: Re: changing URLs after form submit « All PHP « IT news, forums, messages
Re: changing URLs after form submit

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация