ohdang888 Posted January 17, 2008 Share Posted January 17, 2008 ok, so i'm getting this error: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in C:\xampp\htdocs\members\sign_up.php on line 73 i've marked line 73. but its html, whihc is why i am confused. $message = "Dear $name, you are now registered at our web site. To login, simply go to our web page and enter in the following details in the login form: Username: $username Password: $password Please print this information out and store it for future reference. Thanks, $webmaster"; mail($email, $subject, $message, "From: $yoursite <$youremail>\nX-Mailer:PHP/" . phpversion()); echo "Your information has been mailed to your email address; } ?> <html> <form name="login" method="post"> ------------------------- line 73 <table border="0" width="225" align="center"> <tr> <td width="219" bgcolor="#999999"> <p align="center"><font color="white"><span style="font-size:12pt;"><b>Registration</b></span></font></p> </td> </tr> <tr> <td width="219"> <table border="0" width="282" align="center"> <tr> <td width="116"><span style="font-size:10pt;">Name:</span></td> <td width="156"><input type="text" name="name" maxlength="100"></td> </tr> whats wrong? Quote Link to comment https://forums.phpfreaks.com/topic/86413-solved-php-confusing-html/ Share on other sites More sharing options...
AndyB Posted January 17, 2008 Share Posted January 17, 2008 echo "Your information has been mailed to your email address"; // remember to close that echo string Quote Link to comment https://forums.phpfreaks.com/topic/86413-solved-php-confusing-html/#findComment-441584 Share on other sites More sharing options...
ohdang888 Posted January 17, 2008 Author Share Posted January 17, 2008 alright! thanks andy! it works now! stupid me Quote Link to comment https://forums.phpfreaks.com/topic/86413-solved-php-confusing-html/#findComment-441587 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.