Mail form send + go to next frame

mail form send + go to next frame
Howdy,

Just a thing with a mail form, maybe very basic for you all in here but just wondered if someone could help, basically its a submit button with action script, the button sends of the php file and thats all grand…

on (release) {
// send variables in form movieclip (the textfields)
// to email PHP page which will send the mail
form.loadVariables(“email.php”, “POST”);
}

thing is i want it to play a certain frame after it and thought it would be something like
on (release) {
gotoAndStop(2);
}

thing is that it only does the next frame script and does not send to the php, if i do not have the gotoandstop(2) and just leave the php part then that works, anyone any ideas as to why the two scripts will not work together or what way should i arrange the script, maybe i have it backwards, just learning flash so go easy on me…

thanks