HTTP Error 500 (InternalServerError) is prompted after the page jump: The server encountered an exception when trying to execute the request. Index. php jumps to chkadmin. php prompt (the http Error 500 (Internal Server Error) is prompted when the Server Error website jumps to the search & nbsp; HTTP: // localhost/shop/adm page ): the server encountered an exception when trying to execute the request.
Index. php jump to chkadmin. php prompt (server error
The website encountered an error when retrieving http: // localhost/shop/admin/chkadmin. php. The website may be closed for maintenance or the configuration is incorrect.
The following are some suggestions:
Please reload the webpage later.
HTTP Error 500 (Internal Server Error): An exception occurred when the Server tried to execute the request .)
Index. php code:
Function chkinput (form ){
If (form. name. value = ""){
Alert ("Enter the user name! ");
Form. name. select ();
Return (false );
}
If (form. pwd. value = ""){
Alert ("enter your password! ");
Form. pwd. select ();
Return (false );
}
Return (true );
}
Script
Chkadmin. php code
Class chkinput
{
Var $ name;
Var $ pwd;
Function chkinput ($ x, $ y)
{
$ This-> name = $ x;
$ This-> pwd = $ y;
}
Function checkinput ()
{