schilders Posted May 31, 2006 Share Posted May 31, 2006 Good Evening,I'm using Dreamweaver 8 to create a registration site. I need to send an email to a registered user confirming their login credentials. I attempted to use the code pasted below:</head><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><?php$UserName=$_POST['UserName'];$Password=$_POST['Password'];$Email=$_POST['EmailAddress'];$to= $_POST['EmailAddress'];$subject= "Login Credentials for Seeding the Future Registration Site";$receiptMessage = "Thank You for Creating a User Name for the Seeding the Future Registration Site\n\n\nHere is what you submitted to us\n\n"."User Name: ".$UserName. "\n"."Password: ".$Password. "\n"."Email: ".$Email. "\n"mail($to,$subject,$receiptMessage);?>However, when I loaded the page to my server I received an error message: Parse error: parse error, unexpected T_STRING in /usr/local/apache/htdocs/seeding_staging_sid/user_registration.php on line 123where line 123 is my mail statement.Thanks, in advance, for your help. Link to comment https://forums.phpfreaks.com/topic/10828-email-help-needed/ Share on other sites More sharing options...
Orio Posted May 31, 2006 Share Posted May 31, 2006 Add a semicolon (;) after you give $receiptMessage the value (before the mail statement).Otio. Link to comment https://forums.phpfreaks.com/topic/10828-email-help-needed/#findComment-40474 Share on other sites More sharing options...
schilders Posted May 31, 2006 Author Share Posted May 31, 2006 Doh!!! Thanks much:) Link to comment https://forums.phpfreaks.com/topic/10828-email-help-needed/#findComment-40552 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.