redirect after send form to email with message
- From: Big Moxy <bigmoxy@xxxxxxxxx>
- Date: Sun, 30 Sep 2007 09:05:09 -0700
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
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
.
- Follow-Ups:
- Re: redirect after send form to email with message
- From: Krustov
- Re: redirect after send form to email with message
- From: Rik Wasmus
- Re: redirect after send form to email with message
- Prev by Date: Re: New To PHP
- Next by Date: Re: redirect after send form to email with message
- Previous by thread: .htacess and fopen
- Next by thread: Re: redirect after send form to email with message
- Index(es):
Relevant Pages
|