Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in c:\Inetpub\wwwroot\Login\log.php on line 23
I am new to PHP and am not sure of the syntax for this type of statement....can anyone point out what is wrong here? Do I need a special character in fron of the ' that surrounds the PHP_SELF?
Thanks,
Brad
Code: Select all
<?PHP
$user = $_POST["username"];
$pass = $_POST["password"];
$runner = $_POST["formRanOnce"];
echo "this is runner = $runner";
if ($runner == "") {
echo '<form method = "POST" action="<?PHP echo $_SERVER['PHP_SELF']; ?>"> ';
echo '<input name="formRanOnce" type="hidden" value="TRUE">';
echo 'Username: <input name="username" type="text" maxlength="25" tabindex="1"> <br>';
echo 'Password: <input name="password" type="text" maxlength="25" tabindex="2">';
echo '<input name="Login" type="submit" value ="Login">';
echo '</form>';
}
?>