Mr_J Posted September 5, 2008 Share Posted September 5, 2008 Parse error: syntax error, unexpected '<' in /usr/www/users/cyclet/sub-php/mailform.php on line 11 Simple mail form... code:(from line 9) <? <FORM ACTION="http://cycletrac.co.za/sub-php/send_comments.php" METHOD=POST> <TABLE> <TR> <TD>Your Name:</TD> <TD><INPUT TYPE="text" NAME="name" SIZE=30></TD> </TR> <TR> <TD>Your email:</TD> <TD><INPUT TYPE="text" NAME="email" size=30></TD> </TR> <TR> <TD>Your Gender:</TD> <TD><INPUT TYPE="RADIO" NAME="gender" value="m"> Male <TD><INPUT TYPE="RADIO" NAME="gender" value="f"> Female </TD> </TR> <TR> <TD>How did you found us?</TD> <TD> <SELECT NAME="referrer"> <OPTION VALUE="search">Internet Search Engine</OPTION> <OPTION VALUE="tv">Television</OPTION> <OPTION VALUE="other">Other</OPTION> </SELECT> </TD> </TR> <TR> <TD>May we e-mail you?</TD> <TD><INPUT TYPE="checkbox" name="may_contact" value="y" checked></TD> </TR> <TR> <TD>Comments</TD> <TD><TEXTAREA ROWS=4 COLS=50 NAME="comments">Enter your comments here </TEXTAREA></TD> </TR> </TABLE> <INPUT TYPE="SUBMIT" VALUE="Send comments"> </FORM> ?> LINK: http://cycletrac.co.za/sub-php/mailform.php Link to comment https://forums.phpfreaks.com/topic/122843-whats-wrong/ Share on other sites More sharing options...
ranjuvs Posted September 5, 2008 Share Posted September 5, 2008 You have put the PHP tags around the html code. change that and it will work Link to comment https://forums.phpfreaks.com/topic/122843-whats-wrong/#findComment-634402 Share on other sites More sharing options...
waynew Posted September 5, 2008 Share Posted September 5, 2008 facepalm Link to comment https://forums.phpfreaks.com/topic/122843-whats-wrong/#findComment-634473 Share on other sites More sharing options...
revraz Posted September 5, 2008 Share Posted September 5, 2008 Actually, nothing there is PHP, just remove the two PHP tags. Link to comment https://forums.phpfreaks.com/topic/122843-whats-wrong/#findComment-634551 Share on other sites More sharing options...
freeloader Posted September 5, 2008 Share Posted September 5, 2008 That's some serious old skool html notation you have there... If you want to output html code between php tags, use the echo statement and escape your characters. Link to comment https://forums.phpfreaks.com/topic/122843-whats-wrong/#findComment-634558 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.