as2 login error

hey guys… i’m stumped.

i have a login with two fields, ‘username’ and ‘password’, and a login button that sends both to a php script via loadVariablesNum and goes to the next frame, which is a loop that waits for a reply from the php script. if the username and password match, no problem, it does what it’s supposed to do. if they don’t, it says username and password do not match, try again. here’s where the trouble comes in: even if you put the right password in next try, it returns the same error message, but you can immediately leave both fields completely blank, click login a third time, and it’ll work. i’ve tried deleting the variables right after sending them, or setting them = ’ ', but neither work. any ideas?

thanks,
omni