PDA

View Full Version : Form to PHP Behavior


Kaelon
04-06-2004, 06:12 PM
I think I must be doing something wrong, but essentially, here goes: I'm using a simple HTML form to define a variable $userid, and then use the PHP script to take that userid and to do stuff with the user account corresponding to that userid.

For some reason, though, the number that I input on the HTML form gets translated to some other, totally different number. Is there some sort of integer function that I have to perform on a string to prevent it from being corrupted like that?

Thanks,
Kaelon

Kaelon
04-06-2004, 06:30 PM
Answering my own question...

Apparently, use of $userid returns a non-standard value. It's not a standard variable; everything worked fine when I renamed $userid to something like $usernum.