[php] & [flash] Email form problems

Hey there, I’m using a flash form to get information from people.

The problem I’m having is with the flash
I can reseave the email, so the php must be working…

But when I click on send, it doesn’t take me to the “Thankyou come again” screen.

I used the Kirupa tutorial.

For think I have narrowed the problem down to

onClipEvent (data) {
// show welcome screen
_root.nextFrame();
}

Because thats what takes it to the next frame.

Also I thought it might be because it is taking me to the next frame, but it is looping. Which means that I need a stop on frame 2 (thankyou come again frame)??

I also would like to have required fields, I looked through the forum and couldnt get the ones mentioned to work.

Information :
I have 5 input text fields.
Var names : name, email, age, bot, username

Is there a way to make it so that if one of these fields isnt filled in right, it doesn’t send the information and just simply goes to frame 3 (error frame) and have it say, “oops”

Any information on this would be leg-end

Thanks
Greg