Jump to content


Photo

< character missing


  • Please log in to reply
1 reply to this topic

#1 bilis_money

bilis_money
  • Members
  • PipPipPip
  • Advanced Member
  • 621 posts

Posted 12 June 2006 - 02:42 AM

error message problem with these codes.
i getting dizzy with these i know this is simple but i really can't find the problem.

<!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>

The error was = Parse error: syntax error, unexpected '<' in /home/askjames/public_html/mygallery/
upload/upload.php on line 17

thanks in advance., i just can't find the < character that this error message trying to tell me.





#2 jeremywesselman

jeremywesselman
  • Members
  • PipPipPip
  • Advanced Member
  • 154 posts
  • LocationIndependence, KY

Posted 12 June 2006 - 02:55 AM

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--]




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users