jrough;10989094 wrote:It isn't even giving me an error.
Well then you need to either enable them or turn error_reporting up to E_ALL, because this:
preg_split('@',$email);
is going to cause a warning much like this:
Warning: preg_split(): No ending delimiter '@' found
. Note that [man]preg_match/man expects a regular expression pattern, not just some arbitrary string.
Since you do not need to use regular expressions, however, it would be much easier and more efficient to simply use a function like [man]explode/man instead.