Jump to content

< character missing


bilis_money

Recommended Posts

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 17

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



Link to comment
https://forums.phpfreaks.com/topic/11759-character-missing/
Share on other sites

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--]
Link to comment
https://forums.phpfreaks.com/topic/11759-character-missing/#findComment-44483
Share on other sites

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.