Forum Moderators: coopster

Message Too Old, No Replies

Can't get this to work

Seems so simple!

         

4string

5:14 pm on Apr 9, 2005 (gmt 0)

10+ Year Member




$loc = 1;
$reg1 = 1;

echoing these variables returns the correct values yet this statement:

if ($loc == "1" && $reg1 == "") {
//run some code
}

returns true. Why does this return true? Am I insane (regarding this anyway)?

Longhaired Genius

5:51 pm on Apr 9, 2005 (gmt 0)

10+ Year Member



Your script as written works ok, ie, nothing happens, for me. Sorry I can't be of more help.

4string

6:01 pm on Apr 9, 2005 (gmt 0)

10+ Year Member



ID-10-T error discovered! Thanks for checking I wasn't blind.

I forgot to update the passed var name I changed in a function.

Thanks...

jatar_k

5:25 pm on Apr 10, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



lol, 4string

>> ID-10-T error

those are my favourite ;)

mipapage

9:35 pm on Apr 10, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Help out the newb:

ID-10-T error = Wha?

2oddSox

9:43 pm on Apr 10, 2005 (gmt 0)

10+ Year Member



help out the newb

ID-10-T

can be more conveniently written:

ID10T

Closely related to PEBKAC errors :)

mipapage

10:08 pm on Apr 10, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Ugh, I am a newb, thanks for the help :)