Php-problems encountered when using PHP for background login interface

Source: Internet
Author: User
I am using a form. when I click to log on, an event is triggered. The event is a function written in js. This function is used to check whether the user has entered the user name and password, at the same time, a form will be submitted, which uses the action Property to jump to the test to check whether the entered user name and password are the same as the user name and password in the database, the problem is that when I enter an empty user name and password, a prompt box written in js prompts me to enter the user name and password. However, when I click OK in the prompt box, the program still uses the php file in the action, instead of returning to the login box, solve php

I am using a form. when I click to log on, an event is triggered. The event is a function written in js. This function is used to check whether the user has entered the user name and password, at the same time, a form will be submitted, which uses the action Property to jump to the test to check whether the entered user name and password are the same as the user name and password in the database, the problem is that when I enter an empty user name and password, a prompt box written in js prompts me to enter the user name and password. However, when I click OK in the prompt box, the program still uses the php file in the action, do not return to the login box.

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.