Hi, i have just created mail.php for my feedback form. All works fine as you can see at <!-- m --><a class="postlink" href="http://www.warleyscouts.org.uk/feedback.shtml">http://www.warleyscouts.org.uk/feedback.shtml</a><!-- m -->
(If you are going to try the form please use something like 'test' in all fields)
But, as you can see when you submit the form it says:
"Thank you <name> for contacting us. We will get back to you using the email address <email>."
What i want to do is make <name> a link that goes to a preset story but inserts <name> wherever i specify. I could do this by making them submit another form quite easily bit i need to do it by just having them submit the feedback form.
In my mail.php file at the momemnt i have:
Thank you <?php echo $_POST["name"]; ?>
for contacting us. We will get back to you using the email address <?php echo $_POST["email"]; ?>
<p>
Yours in Scouting<br>
18th Warley Scouts
<?
$name=$_POST['name'];
$email=$_POST['email'];
$to="[email protected]";
$message="Form Submission from: $name.\n\nHis/Her email address is: $email\n\nHis/Her message is: $comment";
mail($to,"Form submission",$message,"From: <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->\n");
?>
Thanks
Jamieso I am not sure what you want to do? you can have a bunch of things happen on that page before or after the email is sent.
(If you are going to try the form please use something like 'test' in all fields)
But, as you can see when you submit the form it says:
"Thank you <name> for contacting us. We will get back to you using the email address <email>."
What i want to do is make <name> a link that goes to a preset story but inserts <name> wherever i specify. I could do this by making them submit another form quite easily bit i need to do it by just having them submit the feedback form.
In my mail.php file at the momemnt i have:
Thank you <?php echo $_POST["name"]; ?>
for contacting us. We will get back to you using the email address <?php echo $_POST["email"]; ?>
<p>
Yours in Scouting<br>
18th Warley Scouts
<?
$name=$_POST['name'];
$email=$_POST['email'];
$to="[email protected]";
$message="Form Submission from: $name.\n\nHis/Her email address is: $email\n\nHis/Her message is: $comment";
mail($to,"Form submission",$message,"From: <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->\n");
?>
Thanks
Jamieso I am not sure what you want to do? you can have a bunch of things happen on that page before or after the email is sent.