Re: [PHP] evaluating dynamic variable

2003-09-02 Thread CPT John W. Holmes
From: "Stephen Goodman" <[EMAIL PROTECTED]> > When I run the code you've attached, with $i iterating up to 3, I get > three 'empty!', even if $resolution1 should be 'not empty!'. It seems > like the $i in $_POST["resolutions".$i] is not getting parsed into a > value, and php is looking for a key

RE: [PHP] evaluating dynamic variable

2003-09-02 Thread Stephen Goodman
Whoops, I'm an idiot. Resolution singular, not plural. Thanks for the help everyone . -Original Message- From: Chris W. Parker [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 02, 2003 3:29 PM To: Stephen Goodman; [EMAIL PROTECTED] Subject: RE: [PHP] evaluating dynamic variable

RE: [PHP] evaluating dynamic variable

2003-09-02 Thread Chris W. Parker
Chris W. Parker <> on Tuesday, September 02, 2003 1:29 PM said: > 1. (not positive on this point so correct me if I'm wrong) you > shouldn't compare with !==. Instead us !=. Ok, turns out I'm wrong on that. I guess I should go look it up!! -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] evaluating dynamic variable

2003-09-02 Thread Chris W. Parker
Steve Goodman on Tuesday, September 02, 2003 12:54 PM said: > Can someone > recommend a way to reliably evaluate this variable? 1. (not positive on this point so correct me if I'm wrong) you shouldn't compare with !==. Instead us !=. 2. What does the following do?

Re: [PHP] evaluating dynamic variable

2003-09-02 Thread Matt Matijevich
this worked for me. "; } } ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] evaluating dynamic variable

2003-09-02 Thread Jay Blanchard
[snip] I'm having trouble evaluating a dynamic variable. I want to check if the variable $_POST["resolutions$i"] is an empty string, as you'll see from the code. However, every way I've tried to check the variable so far (including empty() and eval()) always returns a null value, even when the vari