Re: [PHP] Re: set multiple variables

2004-10-03 Thread argesson
Matthew Fonda wrote: On Sun, 2004-10-03 at 04:39, Graham Cossey wrote: isn't the || same as && ? Or I missed something? No, || is OR, and && is AND Check out http://www.php.net/manual/en/language.operators.logical.php OK, sorry, my mistake. And thanks. newbie -- PHP General Mailing List (http://ww

[PHP] Re: set multiple variables

2004-10-03 Thread argesson
Daniel Schierbeck wrote: Argesson wrote: try this: if ($REMOTE_ADDR == "212.3.54.65" && $REMOTE_ADDR == "212.3.54.66") Joe Szilagyi wrote: Hi, I have this working: if ($REMOTE_ADDR == "212.3.54.65") { header("Location: http://www.googl

[PHP] Re: set multiple variables

2004-10-03 Thread argesson
try this: if ($REMOTE_ADDR == "212.3.54.65" && $REMOTE_ADDR == "212.3.54.66") Joe Szilagyi wrote: Hi, I have this working: if ($REMOTE_ADDR == "212.3.54.65") { header("Location: http://www.google.com/search?&q=huzzah";); Redirect browser exit; } But I want to specify multip