This is a discussion on "visitors name not displayed in mail after filling in mail form" within the PHP Forum section. This forum, and the thread "visitors name not displayed in mail after filling in mail form are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
visitors name not displayed in mail after filling in mail form
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
visitors name not displayed in mail after filling in mail form
hi, I'm having a bit of a problem with my mail form. It works fine with a php script, but when I receive a mail of a visitor after filling in the mail form, I get from: anonymous @ hosting.name of server in the header of my mail. I would like to see the name and email displayed in the header but I can't figure out how.
my php-code looks like this:
I've divined them as $adres = $_POST['sadres']; $telefoon = $_POST['stelefoon']; and so on, and placed them in mail($to, $subject, $bericht, $adres, $telefoon, $header); but when I do that I get again anonymous @ hosting.my server. So why does he do it right if I only place mail ($to, $subject, $bericht, $header); and not when I put in $adres and $telefoon? can someone help me out with this? eternally grateful Last edited by Rob; Nov 16th, 2005 at 18:45. Reason: WHEN POSTING CODE, PLEASE USE [PHP] TAGS TO SURROUND PHP CODE |
|
|
|
|||
|
Re: visitors name not displayed in mail after filling in mail form
I found it! Just had to put my var's in a $message
so the correct code go's like this
|
|
||||
|
Re: visitors name not displayed in mail after filling in mail form
Glad you got it sorted!
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
|||
|
Re: visitors name not displayed in mail after filling in mail form
I was actually gonna sort this put for you but you beat me to the punch
|
|
|||
|
Re: visitors name not displayed in mail after filling in mail form
Well, I do have an other question, I would also like an auto reply attached to it. But I have no clue where to start...
|
|
|||
|
Re: visitors name not displayed in mail after filling in mail form
An auto reply to send back to the user?
If so then below the current form you need to make another mail fucntion this time switching the mail addresses with the message of thank you etc. It would send the first mail then the second. |
|
|||
|
Re: visitors name not displayed in mail after filling in mail form
Found and tested this one, and it works! Just paste this behind the rest of your php-code
|
![]() |
| Tags |
| visitors, name, displayed, mail, filling, form |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mail Form help! | ClrWtrDsgnr | PHP Forum | 6 | Sep 27th, 2007 21:22 |
| PHP Form Mail | Maverick25r | PHP Forum | 2 | Sep 22nd, 2006 21:59 |
| Can someone help me with this e-mail form??? | johnson8707 | JavaScript Forum | 9 | Jul 5th, 2006 22:23 |
| Can someone help me with this e-mail form??? | johnson8707 | PHP Forum | 4 | Jul 4th, 2006 17:51 |
| E-mail form ??????? | pittypatter | Web Page Design | 3 | Apr 11th, 2005 23:42 |