|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
In this article it has an example of an e-mail validator.
PHP Code:
That's bad code! What if someone has a number in their e-mail adress? Or an underscore? It would say their e-mail is invalid. I hope no one used this. Here's the real code: PHP Code:
I hope this isn't a waste of time, as in someone pointed this out already. BTW: Mytch, you're doing a great job with the site ![]() Last edited by ejbe99 : May 13th, 2002 at 04:53 PM. |
|
#2
|
|||
|
|||
|
Hey,
Thanks for pointing that out, but the whole point of that was to get the readers familiar with regexp's.... not to actually validate ALL email addresses...it was to show how patterns work, but thanks for picking it out anyway. |
|
#3
|
|||
|
|||
|
If you really want to get picky, you can download php classes, which validate email addresses, and they work really well, if you want to validate emails, i sugest that you look for one of these classes, their really good
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > Programming Tools > I'm a nitpicker; Coding mistake in article 106 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|