Jump to content


Photo

Email Help Needed


  • Please log in to reply
2 replies to this topic

#1 schilders

schilders
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 31 May 2006 - 06:34 AM

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 123
where line 123 is my mail statement.

Thanks, in advance, for your help.



#2 Orio

Orio
  • Staff Alumni
  • Advanced Member
  • 2,491 posts

Posted 31 May 2006 - 07:33 AM

Add a semicolon (;) after you give $receiptMessage the value (before the mail statement).

Otio.
Think you're smarty?

(Gone until 20 to November)

#3 schilders

schilders
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 31 May 2006 - 01:12 PM

Doh!!! Thanks much:)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users