RE: switch it button

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux