Home  >  Article  >  Backend Development  >  用户注册页面有关问题 求指点

用户注册页面有关问题 求指点

WBOY
WBOYOriginal
2016-06-13 11:53:02838browse

用户注册页面问题 求指点啊
我用PHP AJAX 写了一个用户注册页面 如果用户名没有通过的话 不能跳到下一行输入密码 该怎么做?
------解决方案--------------------
代码? 代码?
------解决方案--------------------
突然发现你有用 jquery


那么还要自己写那些做什么?
建议你改写成直接用 jquery 的,简单的例子


数字打头不可用,字母打头可用

用户名:
3-16个字符

check.php
echo is_numeric($_POST['username']{0}) ? 1 : 0;

是不是很简单呢?

Statement:
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