Kirupa's PHP Flash Form E-mail Tutorial Question

I am a flash and php newbie and was wondering what additional code I need to add such that if all the fields were empty, pressing “send” will do nothing. Furthermore, how do I make it such that a valid e-mail address is entered not just a word “sdfsf”.

Thanks.