Hi I bought a tutorial for a website, that has a contact form to fill in, and I have problems with the php mail file: in my personal email received from filling in the contact form of my website, does not display any information I have written in the contact form. The sequence looks like this : <? //name = _namex //email = _emailx //phone = _phonex //comments = _commx $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'From: Sh Faisal' . "\r\n" .'Reply-To: myemail@gmail.com' . "\r\n"; $ToEmail = "myemail@gmail.com"; $ToName = "My Name"; $ToSubject = "New email"; $EmailBody = "<table width='716' height='207' border='1' bgcolor='#090909'> <tr> <td><font size='2' face='Arial' color='#999999'>Sent By: $_namex \nSenders Email: $_emailx\n Message Sent:\n$_commx</font></td> </tr> </table>"; $EmailFooter="\nThis message was sent by: $_namex from $REMOTE_ADDR "; $Message = $EmailBody.$EmailFooter; mail($ToName." <".$ToEmail.">",$ToSubject, $Message, $headers); Print "_root.Status=success"; ?> (I attached the image of what I received in my email, in case that would be usefull ) If you could help me I do thank you very much
user something like this for $message variable: $Message = $EmailBody.$_POST['message'].$EmailFooter; mail($ToName." <".$ToEmail.">",$ToSubject, $Message, $headers); PHP: where $_POST['message'] fetches the written form data, check your textarea field name and put into the $_POST[''] tags. Hope this helps.
if you want a new script that WORKS ..pay me and I'll put it on your site, or give you instructions on how to copy/paste the script I make for it. If you want examples of work , see signature on ezprintsolutions site etc