I've pulled this script off a tutorial I've been trying to follow about e commerce. It was written before register globals were turned off, and so I've been trying to update it to get it to run.
Is it possible to tell me why the above code won't printout the username to the page after the form has been submitted? Am I just going to have to write the extra assignment $SESSION = $POST instead?
<?
session_start();
$frm = $_SESSION;
?>
<form name="entryform" method="post" action="<?=$PHP_SELF ?>">
<table border=1>
<tr>
<td class=label>Username:</td>
<td><input type="text" name="username" size=25 value="<? $frm["username"] ?>">
</td>
</tr>
<tr>
<td></td>
<td><input type="submit" value="Signup"></td>
</tr>
</table>
</form>
<?
echo $frm["username"];
?>