You are here: Re: redirect after send form to email with message « PHP Programming Language « IT news, forums, messages
Re: redirect after send form to email with message

Posted by Sanders Kaufman on 09/30/07 22:11

"Big Moxy" <bigmoxy@gmail.com> wrote in message
news:1191168309.331313.203090@o80g2000hse.googlegroups.com...
>I want to redirect the user back to the home page after submitting
> their form inquiry and display a message on the home page. I tried
> this in my send mail (apply.php) file -
>
> $_SESSION['sent_message'] == "Thank you for your request! Someone will
> be contacting you soon.";
> header("location:index.php");
>
> but got this error -
>
> Notice: Undefined index: sent_message in /home/bigmoxy/public_html/
> projects/senior/apply.php on line 12

After $_SESSION, you used two equals where you should have had one.





>
> Warning: Cannot modify header information - headers already sent by
> (output started at /home/bigmoxy/public_html/projects/senior/apply.php:
> 12) in /home/bigmoxy/public_html/projects/senior/apply.php on line 13
>
> Note that the redirection works without setting the message.
>
> Can someone please advise me on how to accomplish this?
>
> Thank you!
>
> Tim
>

 

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

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