多个电子邮件ID检查。 ? [英] Multiple e-mail id checking . ?

查看:124
本文介绍了多个电子邮件ID检查。 ?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我在To文本框中插入多个电子邮件ID,如下所示,我该如何验证电子邮件ID。

< abidhudavi@gmail.com>,< naseehjasi@gmail.com>," unaise hameed" < unaise2u@gmail.com>," Yunus Mecheri" < YunusMecheri@gmail.com>,

如果我们在上面插入ids或以逗号分隔的ID,它会接受谷歌的
。任何人都知道编码来验证这一点。在Javascript或PHP中

解决方案

您是否在文本框中捕获此电子邮件ID?


如果是,你可以这样做。


HTML,

展开 | 选择 | Wrap | 行号


我试试这段代码,带有一个文本框和提交按钮。但是你的代码中存在错误。


1)var result = return /^([a-zA-Z0-9_\.\-])+\@(([a-azA-Z0- 9\ - ])+ \)+([A-ZA-Z0-9] {2,4})+

/测试(emailArr [I])。。

在上面的行中它给出了语法错误。


2)if(emailFlag == false)

行email emailFlag它说它没有被宣布。

所以你能清楚这个吗?

谢谢你的重播


if i insert multiple e-mail id in To textbox like below , how can i validate the email ids.
<abidhudavi@gmail.com>, <naseehjasi@gmail.com>, "unaise hameed" <unaise2u@gmail.com>, "Yunus Mecheri" <YunusMecheri@gmail.com>,

in google if we insert ids like above or comma separated , it will accept . anybody know the coding to validate this. in Javascript or PHP

解决方案

Are you capturing this email id''s in a text box?

If yes, you can do by this way.

HTML,

Expand|Select|Wrap|Line Numbers


I try this code, with one textbox and submit button. butthere are mistakes in your code.

1) var result = return /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+


/.test(emailArr[i]);
in the above line it gives the Syntax error.

2) if(emailFlag==false)
the line emailFlag it says it is not declared.
so can you clear this ?
thank you for your replay


这篇关于多个电子邮件ID检查。 ?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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