Hello Daniel Here is one approach I use to validate an email address.
if ($email_new !~ /[\w\-]+\@[\w\-]+\.[\w\-]+/) { # Not a valid email address - Do this }else # Valid email address - Do this } Ron ====================================== "Daniel Falkenberg" <[EMAIL PROTECTED]> wrote in message 1018411064.2751.56.camel@gold">news:1018411064.2751.56.camel@gold... Hello all, I am just playing around with forms at the moment. What I want to do is have user enter data into form fiels then I want to validate that entered date. So far I can do things as basic as validating if fields contain characters and so forth. But what I want to do is something like the following... if ($realname eq "" || $email eq "" $email #does not contain an @ symbel) { # Then return an error! } else { # continue } but in some instances the user will place enter their realname but not their email. I would like the user to know where they went wrong in the form. Could some one explain to me what my best way of tackaling this would be? Regards, Dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]