for example, how would i check to see if an @ symbol is included in a registration form when submited?
Well, if you want an actual email validation checker, that's a bit of a different problem. However, to just check if there is an @: if (eregi("@",$email)) { // Yep, there's an @ sign. }
Hi mark, i use this to validate my emails:
if(!eregi("^[0-9a-z_-]+(\\.[0-9a-z_-])*@[0-9a-z-]+\\.[a-z]{2,6}(\\.[a-z]{2,6})*$", $email)) { // Invalid address } else { // Valid }
[edit]DAMN STRIPSLASHES! 😃 [/edit]
ah, thank you both