Re: [PHP] eregi(mail)

2002-05-21 Thread Miguel Cruz
On Tue, 21 May 2002, Denis L. Menezes wrote: > I use the following code, but it does not work. Is there something wrong? > > If > (ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'.'@'.'[-!#$%&\'*+\\/0-9=?A-Z^_`a > -z{|}~]+\.'.'[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$', > $email_address)) One problem (syn

Re: [PHP] eregi(mail)

2002-05-21 Thread Denis L. Menezes
address)) ){ Print ("Sorry, the email address seems to be invalid."); exit; } Please help. Denis - Original Message - From: "Steve Buehler" <[EMAIL PROTECTED]> To: "Kevin Stone" <[EMAIL PROTECTED]> Cc: "PHP" <[EMAIL PROTECTED]&

Re: [PHP] eregi(mail)

2002-05-16 Thread Liam Gibbs
Thanks to all who helped out with the eregi(mail) stuff. I got my problem solved, and on top of that, there were some bugs that I found in the code. Thanks again to everyone. __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yah

Re: [PHP] eregi(mail)

2002-05-10 Thread Miguel Cruz
On Fri, 10 May 2002, Kevin Stone wrote: > As we all know ARPA is thet university network, funded by the government > to build an information infrastructure that eventually became the > internet we have today. But the standards for text messaging within the > ARPA net have been added to over the y

RE: [PHP] eregi(mail)

2002-05-10 Thread Nathan Cassano
This is what I have used. Here is an excellent article on Regular Expressions. Learning to Use Regular Expressions by Example http://www.phpbuilder.com/columns/dario19990616.php3 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] eregi(mail)

2002-05-10 Thread Kevin Stone
e address is sendable, in which case the string format is irrelevant. -Kevin - Original Message - From: "Miguel Cruz" <[EMAIL PROTECTED]> To: "Kevin Stone" <[EMAIL PROTECTED]> Cc: "PHP-general" <[EMAIL PROTECTED]> Sent: Friday, May 10, 200

Re: [PHP] eregi(mail)

2002-05-10 Thread Steve Buehler
To tell you the truth, I can't read it. Steve At 01:32 PM 5/10/2002, Miguel Cruz wrote: >On Fri, 10 May 2002, Steve Buehler wrote: > > > >if(ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'.'@'.'[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.'.'[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$', > > > >If I'm reading it

Re: [PHP] eregi(mail)

2002-05-10 Thread Steve Buehler
>[EMAIL PROTECTED] > > >- Original Message ----- >From: "Analysis & Solutions" <[EMAIL PROTECTED]> >To: "PHP List" <[EMAIL PROTECTED]> >Sent: Friday, May 10, 2002 10:59 AM >Subject: Re: [PHP] eregi(mail) > > > > Hi L

Re: [PHP] eregi(mail)

2002-05-10 Thread Analysis & Solutions
Folks: On Fri, May 10, 2002 at 01:27:45PM -0500, Steve Buehler wrote: > > >if(ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'.'@'.'[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.'.'[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$', > > $subarray)){ Those characters don't conform to the R

Re: [PHP] eregi(mail)

2002-05-10 Thread Miguel Cruz
On Fri, 10 May 2002, Steve Buehler wrote: > >if(ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'.'@'.'[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.'.'[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$', > If I'm reading it correctly, this will let invalid addresses through. The domain component (after the @ sign) can only

Re: [PHP] eregi(mail)

2002-05-10 Thread Miguel Cruz
On Fri, 10 May 2002, Kevin Stone wrote: > I had always been suspicious about email validators so I did a big long > search on Google about standard address formats. It turns out that aside > from the @ symbol emails have no standard format whatsoever. So ereg('@', > $email) is really the only fu

Re: [PHP] eregi(mail)

2002-05-10 Thread Steve Buehler
function check_input($array){ global $HTTP_REFERER; $valid = 1; if(gettype($array)=="array") { while (list($index, $subarray) = each($array) ) { if(ereg("required_", $index) && (($subarray == "") || ($subarray == " "))) {

Re: [PHP] eregi(mail)

2002-05-10 Thread Kevin Stone
pected. I hope it was useful in some tiny miniscule sort of way. :) -- Kevin Stone [EMAIL PROTECTED] - Original Message - From: "Analysis & Solutions" <[EMAIL PROTECTED]> To: "PHP List" <[EMAIL PROTECTED]> Sent: Friday, May 10, 2002 10:59 AM Subject: Re

Re: [PHP] eregi(mail)

2002-05-10 Thread Miguel Cruz
On Fri, 10 May 2002, Liam Gibbs wrote: > Does anyone have a decent eregi statement for > validating e-mail addresses? I've tried the ones on > the site, but there seems to be small bugs with each > of them. They tell me that [EMAIL PROTECTED] is an > invalid e-mail address. Well, it currently is

Re: [PHP] eregi(mail)

2002-05-10 Thread Analysis & Solutions
Hi Liam: On Fri, May 10, 2002 at 09:48:58AM -0700, Liam Gibbs wrote: > Does anyone have a decent eregi statement for > validating e-mail addresses? eregi('^[a-z0-9_.=+-]+@([a-z0-9-]+\.)+([a-z]{2,6})$', $Email); Enjoy, --Dan -- PHP classes that make web design easier SQ

[PHP] eregi(mail)

2002-05-10 Thread Liam Gibbs
Does anyone have a decent eregi statement for validating e-mail addresses? I've tried the ones on the site, but there seems to be small bugs with each of them. They tell me that [EMAIL PROTECTED] is an invalid e-mail address. __ Do You Yahoo!? Yahoo