bunglebrown
New Member
- Messages
- 157
- Reaction score
- 0
- Points
- 0
I want to put one to you that is probably glaringly obvious but bear with me. I have a simple form where users post a comment submitting their name and email address. But I can't get any of the variables to show up in the message - can anyone tell me why? ? -  I'm new to it all so be gentle> lol
	
	
	
		
Edit:
no-one... no?
			
			
		PHP:
	
	<?php
// Create local PHP variables from the info the user gave in the Flash form -disabled message field
$fromname   = $_POST['fromname'];
$fromemail   = $_POST['fromemail'];
$fromcomments = $_POST['fromcomments'];
// Strip slashes on the Local variables -disabled message field
$fromname   = stripslashes($fromname);
$fromemail      = stripslashes($fromemail);
$fromcomments   = stripslashes($fromcomments); 
    $from = $fromemail;
    $subject = "my title";
    //Begin HTML Email Message
    $message = <<<EOF
<html>
  <body bgcolor="#FFFFFF">
<b>New entry<br />
<b>            $fromemail, 
<b>            <br />
<b>            $fromcomments<br />
<b>			   <a href="http://www.mywebsite.com">www.mywebsite.com</a><br />
  </body>
</html>
EOF;
   //end of message
    $headers  = "From: $from\r\n";
    $headers .= "Content-type: text/html\r\n";
    $to = "myemail@myhost.com";
    mail($to, $subject, $message, $headers);
	
exit();
?>Edit:
no-one... no?
			
				Last edited: 
			
		
	
								
								
									
	
								
							
							