RE: [PHP] switch it button
| From: | Jay Blanchard | Date: | Wed, 23 Aug 2006 12:47:24 +0000 |
| Subject: | RE: [PHP] switch it button | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-241045@lists.php.net to get a copy of this message | ||
[snip]
At the moment I have this, but I want to change it to one switch button
<a href="<?php echo $_SERVER['PHP_SELF'];?>?session_switch=1">switch
it</a>.
I have tried but keep getting wrapped up in nested if-else statements.
Does
anyone know how to make an efficient one button on-off switch.
[/snip]
Have you considered a switch statement? http://www.php.net/switch