Request Form help pls

I am trying to do the request form with PHP code…
I am having few issues though…For some reason it DOES work and sends my PHP code to email BUT it does not go to the next frame which is Thank You for submitting Screen…When I add GotoandStop (2) which is 2nd frame with thank you screen then my PHP does not work… here is my outline:

It is Request form with bunch of fields put together in main “FORM”

the code on the main form with all the variables is:
onClipEvent(data){
// show welcome screen
_root.nextFrame();
}

the code for SUBMIT button is:
on (release) {
form.loadVariables(“request.php”, “POST”);
}

Now this code works fine BUT it doesn’t go to nextFrame and just sits… in same window… When I do
on (release) {
form.loadVariables(“request.php”, “POST”);
gotoAndStop(2);
}

then the PHP does not work and I don’t receive any request form email…

What can be the problem and how could I solve this??
Tips appreciated… Thanks!