bilis_money Posted June 12, 2006 Share Posted June 12, 2006 error message problem with these codes.i getting dizzy with these i know this is simple but i really can't find the problem. [code]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>Untitled Document</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head><body bgcolor="#999999" text="#FFFFCC" leftmargin="0" topmargin="0"><div align="center"> <pre><font face="Georgia, Times New Roman, Times, serif"><strong>Uploading image files</strong></font> </pre><?php #$uploadDir = $_SERVER['DOCUMENT_ROOT'].'/upload/images/'; <form action="" method="post" enctype="multipart/form-data" name="uploadform"> <pre> <strong>Image 1.</strong> #<input type="hidden" name="MAX_FILE_SIZE" value="2000000"> #<input name="userfile" type="file" class="box" id="userfile"> <input type="hidden" name="MAX_FILE_SIZE" value="2000000"> <input name="userfile1" type="file" id="userfile" size="50"> <strong>Image 2.</strong> <input name="upload2" type="text" value="" size="50"> #<input type="submit" name="browse" value="browse"> <strong>Image 3.</strong> <input name="upload3" type="text" value="" size="50"> #<input type="submit" name="browse" value="browse"> <strong>Image 4.</strong> <input name="upload4" type="text" value="" size="50"> #<input type="submit" name="browse" value="browse"> <strong>Image 5.</strong> <input name="upload5" type="text" value="" size="50"> #<input type="submit" name="browse" value="browse"> </pre> <pre> #<input name="submit6" type="submit" id="submit6" value="upload"> <input name="upload" type="submit" id="upload" value=" Upload "> </pre> </form>?></div></body></html>[/code]The error was = Parse error: syntax error, unexpected '<' in /home/askjames/public_html/mygallery/upload/upload.php on line 17thanks in advance., i just can't find the < character that this error message trying to tell me. Quote Link to comment https://forums.phpfreaks.com/topic/11759-character-missing/ Share on other sites More sharing options...
jeremywesselman Posted June 12, 2006 Share Posted June 12, 2006 It is because you are trying to put HTML code inside PHP tags without using print or echo to print the HTML code.It looks like you need to close the PHP tag right before the output of the HTML and get rid of the closing tag at the bottom.[!--coloro:#990000--][span style=\"color:#990000\"][!--/coloro--]Jeremy[!--colorc--][/span][!--/colorc--] Quote Link to comment https://forums.phpfreaks.com/topic/11759-character-missing/#findComment-44483 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.