Daniel Falkenberg wrote:

> 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?


if you want to validate email addresses, consider using email::valid

http://search.cpan.org/search?dist=Email-Valid


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to