Ford, Mike wrote:
How about something like:
switch
Beware that PHP_SELF is injectable like several other $_SERVER
variables, so you must at least encode it to prevent XSS attacks.
Eg. http://example.com/foo.php/";>
At 12:44 PM +0100 8/23/06, Ross wrote:
At the moment I have this, but I want to change it to one switch button
I think I know what you mean -- a single switch button.
Please review this kiddie-script:
http://xn--ovg.com/a/toggle.php
hth's
tedd
--
---
http://sperling.com http://ancients
On 23 August 2006 12:45, Ross wrote:
> At the moment I have this, but I want to change it to one
> switch button
>
> switch it.
> 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.
>
>
>
> $sessio
[snip]
At the moment I have this, but I want to change it to one switch button
switch
it.
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.n
4 matches
Mail list logo