A serious question for the Email from tutorial

Hello.
In the Email tutorial http://www.kirupa.com/developer/actionscript/flash_php_email.htm

we are told
[SIZE=2][SIZE=2][COLOR=black]
[/COLOR][/SIZE][/SIZE]

[SIZE=2][SIZE=2][COLOR=black]So on the form movieclip we can add the script that checks for that. When the event runs, we can then go to the next frame showing the thank you screen.
onClipEvent(data){ _root.nextFrame();} [/COLOR][/SIZE][/SIZE]

trouble is im not sure where to place this code. I have put it in the first frame on the actions layer of the form mc. I will try to up load to server to see what happens.
Am i on the right thread here ?