Forum Moderators: coopster
Now I'm at the place where the user enters name and password; database is to be searched, if found, user is logged on.
However, I get an "Error on page" in the bottom left hand corner of Internet Explorer, when I click on the Submit button of the form where name and password is entered.
Have commented out all database accessing code, and still get the error, so I'm wondering if the error comes from where the form variables are passed on. (I'm also new to writing forms.
Please can you help? I'm using PHP4.
Javascript is used to validate the form. It works fine with giving error messages (e.g. password too short) - the error comes when a valid user name and password is entered.
The Javascript is like this:
var saveit=true;
if %test1%
then saveit = false;
... and so on, various tests
//else // i.e. no errors found
else if (saveit) submit();
Is that submit() correct?
Actually what I can also try, is to take out the Javascript altogether for now (i.e. don't check for errors), and just see if the username gets passed on to the next php file.
i.e. NAME="Login_button" VALUE="Login" ONCLICK="submit()"
and the "Error on page" has disappeared!
(And nothing else happens, because I've commented it all out to try and find the mistake, no I must get back to what was supposed to happen when this button gets pressed).
Thanks for the help.