Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PHP
#2
(07-21-2011, 08:46 PM)roperson Wrote:
Code:
if (!$_REQUEST["Admi"]) echo '<a href="login.php">login</a> is needed to use this page.';
if ($_REQUEST['Admi']);
{
echo '<form action="upload_file.php" method="post"enctype="multipart/form-data">';
echo '<label for="file">Filename:</label>';
echo '<input type="file" name="file" id="file" />';
echo '<br />';
echo '<input type="submit" name="submit" value="Submit" />';
echo '</form>';
}

It does say "login is needed to use this page", but it also echos the form...

Take out the semicolon in the second line.
Reply


Messages In This Thread
PHP - by Dignity - 07-21-2011, 08:46 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)