如何检查电子邮件是否已经在PHP/HTML/MYSQL/数据库中 [英] how to check if the email is already in database in PHP/HTML/MYSQL/

查看:76
本文介绍了如何检查电子邮件是否已经在PHP/HTML/MYSQL/数据库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

示例场景

当我在文本框中输入电子邮件地址时,它将自动写出已经存在的电子邮件

该怎么做?

只需要简单和基本的答案,谢谢您.

sample scenario

when i put the email address in the textbox it will automatically write email already exists

how to do that?

just need simple and basic answers thank you

推荐答案

使用AJAX. OnBlur或OnKeyDown根据需要的时间向服务器发出AJAX调用,并检查是否已存在书面文本/电子邮件.根据收到的响应,显示内容.

您可以使用传统的XMLHttpRequest或jQuery Ajax.选择适合的对象.
Use AJAX. OnBlur or OnKeyDown, based on when you want, fire an AJAX call to server and check if the written text/email already exists or not. Based on the response received, display the content.

You can use traditional XMLHttpRequest or jQuery Ajax. Pick that you are suitable with.


文本框调用c#函数的ontextchange事件,检查表中是否存在电子邮件ID
ontextchange event of textbox call c# function that check email id present or not in a table


这篇关于如何检查电子邮件是否已经在PHP/HTML/MYSQL/数据库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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