Re: redirect after send form to email with message
- From: Big Moxy <bigmoxy@xxxxxxxxx>
- Date: Sun, 30 Sep 2007 10:20:15 -0700
On Sep 30, 10:12 am, "Rik Wasmus" <luiheidsgoe...@xxxxxxxxxxx> wrote:
On Sun, 30 Sep 2007 18:05:09 +0200, Big Moxy <bigm...@xxxxxxxxx> wrote:
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
Change '==' to '='... it's an assignment. And as soon as the error output
there disappears, you can do a header redirect. (BTW: displaying errors is
OK for development offcourse, disable it on a live server though).
--
Rik Wasmus
Thank you for pointing out the double = sign!!
.
- References:
- redirect after send form to email with message
- From: Big Moxy
- Re: redirect after send form to email with message
- From: Rik Wasmus
- redirect after send form to email with message
- Prev by Date: Re: redirect after send form to email with message
- Next by Date: Re: not receiving emails expected
- Previous by thread: Re: redirect after send form to email with message
- Next by thread: Re: redirect after send form to email with message
- Index(es):
Relevant Pages
|