The "Internal Server Error" could mean several things, but most likely means an error in your PHP code. This will require setting the display_errors
property to "1" in your php.ini. The problem might also be a startup error, so you may wish to also consider the display_startup_errors
property.
http://www.php.net/manual/en/errorfunc.configuration.php#ini.display-errors
Two comments about the code, unrelated to your question: 1) the expression $ipass !== $ipass
seems like a typo, as it will always return FALSE
, and 2) this "security" is easily bypassed by turning javascript off. Consider using header()
for redirects instead.
http://us2.php.net/manual/en/function.header.php
EDIT: ... in this specific case, the error is use of the variable $iuser
, which is undefined. You'd previously declared it as $iusr
. Turning on error reporting or looking at the log will present you with good error messages to find these sorts of problems easily.