Validating contact form Free midget chat cams
The green comments should basically explain what each code snippet is doing. All we have to do is insert a little more PHP to output two kinds of messages.
The first message is to notify us in case there were errors after our submission, and the other is a message to tell us that the email was already sent and no errors were found.
Place this code on the topmost section of your file (just above your DOCTYPE declaration).