Re: [PHP] switch it button

2006-08-23 Thread Arpad Ray
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/";>

Re: [PHP] switch it button

2006-08-23 Thread tedd
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

RE: [PHP] switch it button

2006-08-23 Thread Ford, Mike
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

RE: [PHP] switch it button

2006-08-23 Thread Jay Blanchard
[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