Mailform using php question

Hopefully there is someone out there who can help me out with this. I would like to create a flash form in flash that works with php. but what i would like for it to do is to

  1. submit the info
  2. flash to check to see if the information was sent to the server
  3. when success for it to show the user time of reciept.
  4. if failed to go to error and then back to the form.

now i wrote the scripts in both actionscript and php but the dumb thing does not want to go past the wait state. its sending nothing and doing nothing. I hope there is someone out there that can help me out. here is a link to the file. http://www.neptuneis.com/dumbform.zip Thanks!