Re: redirect after send form to email with message
- From: Krustov <me@xxxxxxxxxxx>
- Date: Sun, 30 Sep 2007 17:39:01 +0100
<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 ? .
Put the following on your form page .....
<input type="hidden" name="passform" value="1">
Put the following in the index.php page .....
<?php
$msg=$_REQUEST['passform'];
if ($msg==1) {"<br> Thank you for your request! Someone will be
contacting you soon. <br>";}
?>
The rest of your index.php page will de displayed as normal .
--
(c) The Amazing Krustov
.
- Follow-Ups:
- Re: redirect after send form to email with message
- From: Rik Wasmus
- Re: redirect after send form to email with message
- From: Big Moxy
- Re: redirect after send form to email with message
- References:
- redirect after send form to email with message
- From: Big Moxy
- redirect after send form to email with message
- Prev by Date: Re: redirect after send form to email with message
- Next by Date: Re: redirect after send form to email with message
- 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
|