Re: redirect after send form to email with message
- From: "Rik Wasmus" <luiheidsgoeroe@xxxxxxxxxxx>
- Date: Sun, 30 Sep 2007 21:14:48 +0200
On Sun, 30 Sep 2007 18:39:01 +0200, Krustov <me@xxxxxxxxxxx> wrote:
<comp.lang.php>
<Big Moxy>
<Sun, 30 Sep 2007 09:05:09 -0700>
<1191168309.331313.203090@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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");
Why not send the user straight to the index.php page instead of
apply.php page ? .
1. Having different scripts doing actual work keeps things clear and easily managable. Sure, You could have a whole site in just one index.php page. Would you do that?
2. On as side note: Doing a header redirect prevents those pesky 'do you want to resubmit you information?' alerts from UA's on a refresh.
--
Rik Wasmus
.
- References:
- redirect after send form to email with message
- From: Big Moxy
- Re: redirect after send form to email with message
- From: Krustov
- redirect after send form to email with message
- Prev by Date: Dbugging PHP and Eclipse
- Next by Date: Re: Do you use _set?
- Previous by thread: Re: redirect after send form to email with message
- Next by thread: Dbugging PHP and Eclipse
- Index(es):
Relevant Pages
|