Jump to content

this end tag has no matching start tag


Shermanator

Recommended Posts

While I'm sure the solution is staring me dead in the face I cannot see it. Offending code is as follows..."<form method='post' action='mailform.php'> Email: <input name='email' type='text' /><br /> Subject: <input name='subject' type='text' /><br /> Message:<br /> <textarea name='message' rows='15' cols='40'> </textarea><br /> <input type='submit' value='Submit' /></form>";}?>when compiled onto a web page the "submit button" is followed by ";?> it's just a copied version of the form at http://www.w3schools.com/php/php_mail.asp

Link to comment
Share on other sites

Just curious, does your webpage you complied run PHP code? If so, post your entire code.

Link to comment
Share on other sites

per your request...<?phpif (isset($_REQUEST['email'])) { //send email mail("joshua-sherman@live.com", $subject, $message, "From:" . $email); $email = $_REQUEST['email'] ; $subject = $_REQUEST['subject'] ; $message = $_REQUEST['message'] ; echo "Thank you for using our mail form"; }else { echo "<form method='post' action='mailform.php'> Email: <input name='email' type='text' /><br /> Subject: <input name='subject' type='text' /><br /> Message:<br /> <textarea name='message' rows='15' cols='40'> </textarea><br /> <input type='submit' value='Submit' /></form>";}?>

Link to comment
Share on other sites

Yeah, If you don't have PHP running, you'll get very weird errors on your webpage like the one you got.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...