|
Author |
Message |
badger
Junior WebHelper
![Junior WebHelper Junior WebHelper](images/rank_1.gif)
Joined: 08 Oct 2004
Posts: 10
|
Posted:
Mon Nov 08, 2004 8:50 pm (19 years, 5 months ago) |
![Reply with Quote Reply with Quote](templates/4WebHelp2/images/lang_english/icon_quote.gif) ![Back to Top Back to Top](templates/4WebHelp2/images/icon_up.gif) |
Hello once again!
Im using a modifyed e-mail contact script and need a little help!
Code: | mail($mailto, $subject, $message, "From: \"$user\" <$user>\nReply-To: \"$user\" <$user>\nX-Mailer: badgermail 2004!" );
header( "Location: $thankyou" );
exit ; |
I would like to change the $thankyou variable to include my thanks message as I would like to use other variables posted to the PHP script.
I tryed this but to no avail.
Code: | mail($mailto, $subject, $message, "From: \"$user\" <$user>\nReply-To: \"$user\" <$user>\nX-Mailer: badgermail 2004!" );
header( "<div id="odQtnHeader">badgers!</div>
<br>
<p align="center"><?php print('Thank you '.$user); ?> your message has been sent.</p>
" );
exit ; |
Any anyone help and point out where I am going wrong?
Many Thanks!
badger |
|
|
![Offline](templates/4WebHelp2/images/offline.gif) ![View User's Profile View User's Profile](templates/4WebHelp2/images/lang_english/icon_profile.gif) ![Find all posts by badger Find all posts by badger](templates/4WebHelp2/images/lang_english/icon_search.gif) ![Send Personal Message Send Personal Message](templates/4WebHelp2/images/lang_english/icon_pm.gif) |
![](images/spacer.gif) |
Daniel
Team Member
![](images/rank_6.gif)
![](http://www.4webhelp.net/forums/images/daniel_avatar.php)
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Tue Nov 09, 2004 4:24 pm (19 years, 5 months ago) |
![Reply with Quote Reply with Quote](templates/4WebHelp2/images/lang_english/icon_quote.gif) ![Back to Top Back to Top](templates/4WebHelp2/images/icon_up.gif) |
Use this:
Code: |
<?php
mail($mailto, $subject, $message, "From: \"$user\" <$user>\nReply-To: \"$user\" <$user>\nX-Mailer: badgermail 2004!" );
?>
<div id="odQtnHeader">badgers!</div>
<br>
<p align="center"><?php print('Thank you '.$user); ?> your message has been sent.</p> |
header() is only to be used for headers, as the name indicates, not for HTML. |
________________________________
![Image Image](http://www.4webhelp.net/images/daniel_sig.gif) |
|
![Offline](templates/4WebHelp2/images/offline.gif) ![View User's Profile View User's Profile](templates/4WebHelp2/images/lang_english/icon_profile.gif) ![Find all posts by Daniel Find all posts by Daniel](templates/4WebHelp2/images/lang_english/icon_search.gif) ![Send Personal Message Send Personal Message](templates/4WebHelp2/images/lang_english/icon_pm.gif) |
![](images/spacer.gif) |
|
|
You cannot post new topics in this forum. You cannot reply to topics in this forum. You cannot edit your posts in this forum. You cannot delete your posts in this forum. You cannot vote in polls in this forum.
|
Page generation time: 0.144806 seconds :: 18 queries executed :: All Times are GMT
Powered by phpBB 2.0
© 2001, 2002 phpBB Group :: Based on an FI Theme
| |