注册页面信息的验证和提交解决办法

WBOY
Release: 2016-06-13 13:33:44
Original
953 people have browsed it

注册页面信息的验证和提交
注册页面一个form,提交按钮用的是图片。想法是这样的:先用javascript验证一下输入信息的格式,然后在用php提交给数据库,再验证用户名是否已经存在。问一下怎么实现。希望答案能详细一点,比如哪里调用javascript哪里调用php文件。form的提交在哪里?

------解决方案--------------------
提交按钮 触发 onclick->
javascript 验证输入信息格式->
submit->提交数据 post 或者 get(ajax)->
php->验证用户名是否存在->
返回数据
------解决方案--------------------
1楼回答很完整,新版主,加油
------解决方案--------------------

探讨

提交按钮 触发 onclick->
javascript 验证输入信息格式->
submit->提交数据 post 或者 get(ajax)->
php->验证用户名是否存在->
返回数据
Related labels:
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!