Simple button question, hopefully

ive got my mail form to work, it sends but doesn’t go to next frame ‘what’ and ‘where’ do i tag it on to this button script?

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

i just need it to go to the next frame, thanks neil.

this._parent.gotoAndStop(<frame number>);

thanks neutrino, it didn’t work but this did, wouldn’t have got there without you though, thanks again neil.

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