Flash form advanced

ok i have a question and i know this can be done. in the php on the flash form. how do i make sure the persn puts a vaid email address. i don’t know where to put or get a code for that.