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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.