hi,
thanks for your reply.
I altered your code a little firstly to match my username variable and secondly so i could specifiy variables for each username and password at top of script.
here is what i replaced the current IF with:
if ((($usrname == "$u1") && ($passwd == "$p1")) || (($usrname == "$u2") && $passwd == "$p2")) || (($usrname == "$u3") && ($passwd == "$p3")))
and an example of the variables:
$u1 = "Name1";
$p1 = "Pass1";
and i got a parse error on the IF statement's line. I also tried it without the "" around the variable in the IF.
Any suggestions on how to fix it?