在表单中输入数据期间验证用户名 [英] validation of user name during the entering the data in form

查看:75
本文介绍了在表单中输入数据期间验证用户名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在填写用户注册表格.当用户提交表单时,如果用户名是重复的,则将用户名显示为主键,不要重复.

如果他们提供的名称是重复名称,我想向用户显示该名称已经存在的消息.



非常感谢您的帮助.

I am making a user sign up form. When the user submits a form, if the user name is a duplicate then show the user name as a primary key not repeated.

I would like to show a message to the user that the name already exists if the name they provide is a duplicate.



Any help is greatly appreciated.

推荐答案

使用AJAX,
http://www.w3schools.com/php/php_ajax_database.asp [
use AJAX,
http://www.w3schools.com/php/php_ajax_database.asp[^],
you can get data without reloading a form


这篇关于在表单中输入数据期间验证用户名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆