Sending email using LoadVars and CGI

Hi There,

I’m am trying to send an email form, from flash to my web hosts cgi scipt (mailgate). I am unsure how to translate the html code given by the host to use in actionscript and where to put the hidden variables to make this work. My action script reads-

stop ();
function sendForm () {
my_lv = new LoadVars (); = _parent.t1_2.text; = _parent.t2_2.text; = _parent.t3_2.text;
my_lv.the_message = _parent.t4_2.text;
my_lv.send (“”,“POST”);
nextFrame ();
send_btn.onRelease = function () {
if (t1.text == “” || t2.text == “” || t3.text == “” || t4.text == “”) {
status_text.text = “Please complete the entire form …”;
} else {
status_text.text = “Thank You. Your message has been sent.”;
sendForm ();

and the html given is:
[size=2][font=Arial][color=#0000ff]<FORM METHOD=“POST” ACTION=“”> <inpu[/color][/font][font=Arial][size=2][color=#0000ff]t type=hidden name=“recipient” value="[/color][font=Arial][size=2][color=#ff0000][email protected][/color][/size][/font][font=Arial][size=2][color=#0000ff]"> <input type=hidden name=“subject” value="[/color][/size][/font][font=Arial][size=2][color=#ff0000]Enter Subject[/color][/size][/font][font=Arial][size=2][color=#0000ff]"> <input type=hidden name=“redirect” value="[/color][/size][/font][font=Arial][size=2][color=#ff0000][/color][/size][/font][font=Arial][size=2][color=#0000ff]"> [/color][/size][/font][font=Arial][size=2][color=#0000ff]Your Email address: <input type=text name=“email”><BR> Your Full Name: <input type=text name=“realname”><BR> Tell me what you think of me? <TEXTAREA NAME= “comments” ROWS=3 COLS=50>Type Here</TEXTAREA> <INPUT TYPE=“SUBMIT” VALUE=“Send Comments”> </FORM>[/color][/size][/font][/size][/font][/size]

Currently, if I press submit, it opens another browser window and asks for a recipient to be specified.

Any help would be greatly appriecated. Thanks