I want to make buttons dissappear one by one, by clicking on them, 'till they are all gone.
Begin with FOUR submit buttons. Clicking one of them submits form (ACTION="<?php print $PHP_SELF?>">), and makes the button that was just clicked dissappear. Now, THREE buttons appear.
...so far so good...BUT...
Clicking one of those three, will make only that clicked one dissappear, but the FIRST button I clicked earlier reappears!
How can I make it so if we start with 4 buttons, clicking one of them gives you 3 buttons. Clicking one of those 3 gives you 2 buttons. Clicking one of those 2 gives you 1 button left, etc.
Here's the code:
<?php
echo "bill<BR>";
if (!isset($BILL))
{
echo "<INPUT TYPE='submit' VALUE='APPLE' NAME='BILL'>";
}
echo "<BR>fred<BR>";
if (!isset($FRED))
{
echo "<INPUT TYPE='submit' VALUE='ORANGE' NAME='FRED'>";
}
echo "<BR>tom<BR>";
if (!isset($TOM))
{
echo "<INPUT TYPE='submit' VALUE='PEACH' NAME='TOM'>";
}
echo "<BR>harry<BR>";
if (!isset($HARRY))
{
echo "<INPUT TYPE='submit' VALUE='BANANA' NAME='HARRY'>";
}
?>