|
Posted by Rik Wasmus on 09/30/07 16:12
On Sun, 30 Sep 2007 18:05:09 +0200, Big Moxy <bigmoxy@gmail.com> 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'] =3D=3D "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 '=3D=3D' to '=3D'... 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
Navigation:
[Reply to this message]
|