RE: [PHP] Is there a shorthand way to...?

2004-11-23 Thread Gryffyn, Trevor
I didn't see this in any of the responses, and truthfully it's not the best way or most secure.. .basically it has a lot of flaws that you should watch out for (probably creates security issues more than any other thing) but another option for mass setting variables that are possible set or not is

RE: [PHP] Is there a shorthand way to...?

2004-11-22 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 22 November 2004 14:01, Al wrote: > When handling $_POST[] values that may or may not be > assigned, I am forever using: > > if((isset($_POST['courses_list']) AND > $_POST['cour

Re: [PHP] Is there a shorthand way to...?

2004-11-22 Thread Robby Russell
On Mon, 2004-11-22 at 09:01 -0500, Al wrote: > When handling $_POST[] values that may or may not be assigned, I am forever > using: > > if((isset($_POST['courses_list']) AND $_POST['courses_list']== 'Used')) > > Is there a shorthand way of doing this without causing notice errors? > > Thanks...

Re: [PHP] Is there a shorthand way to...?

2004-11-22 Thread Marek Kilimajer
Al wrote: When handling $_POST[] values that may or may not be assigned, I am forever using: if((isset($_POST['courses_list']) AND $_POST['courses_list']== 'Used')) Is there a shorthand way of doing this without causing notice errors? Thanks. Before your condition: $courses_list = isset($_POS