looks like PHP inside of your Actionscript and would throw a
syntax error that you would see if you are using Menu
Perhaps you meant
name = name.text;
email = name.text;
comments = name.text;
2. loadVariablesNum("tomail.php", 0, "POST");
This sending all the variables declared on level 0 to the PHP
script. Components are not variables and so you need to transfer
the component values into variables in level 0.
For better code use
This way you can specifically attach the data you are sending and
make it visible in code and also receive a return call back when
the server script is complete.