Home > Backend Development > PHP Tutorial > php-用PHP做后台登陆界面时候所遇到的问题

php-用PHP做后台登陆界面时候所遇到的问题

WBOY
Release: 2016-06-02 11:33:52
Original
1139 people have browsed it

php

我用表单做的,当我点击登陆时候会触发一个事件,事件是一个用js写的函数,该函数是用来检查用户是不是输入了用户名和密码,同时也会提交一个表单,它是通过action属性跳转到检验所输入的用户名和密码是不是和数据库中的用户名和密码一样的功能,问题就是当我输入空的用户明和密码的时候,有js 写的提示框提示我输入用户名和密码,但当我点击提示框的确定时候程序依然走action中的php文件,不是回到登陆框,求解

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template