HTTP exception 500 (InternalServerError) is prompted after Page jump: An exception occurred when the server tried to execute the request.

Source: Internet
Author: User
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 ()
{

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.