Hey guys,
So…here’s my code:
ActionScript Code:
[FONT=Courier New][LEFT]sendbtn.[COLOR=#0000ff]onRelease[/COLOR] = [COLOR=#000000]function[/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#808080]/this works
name = “subscribeform”;
subscribe = “Subscribe”;
this._parent[“list[2]”] = “list[2]”;
email = yemail.text;
emailconfirm = yemail.text;
attribute7 = sendFname;
attribute2 = sendLname;
attribute25 = 1;
getURL(“http://www.mydomain.com/mailinglists/?p=subscribe&id=1”, receive_lv, “POST”);
gotoAndPlay(“thanks”);
/[/COLOR]
[COLOR=#808080]//this dont
[/COLOR]
[COLOR=#000000]var[/COLOR] send_lv:[COLOR=#0000ff]LoadVars[/COLOR] = [COLOR=#000000]new[/COLOR] [COLOR=#0000ff]LoadVars[/COLOR]COLOR=#000000[/COLOR];
send_lv[COLOR=#000000][[/COLOR][COLOR=#ff0000]“list[2]”[/COLOR][COLOR=#000000]][/COLOR] = [COLOR=#ff0000]“signup”[/COLOR];
send_lv.[COLOR=#0000ff]name[/COLOR] = [COLOR=#ff0000]“subscribeform”[/COLOR];
send_lv.[COLOR=#000080]subscribe[/COLOR] = [COLOR=#ff0000]“Subscribe”[/COLOR];
send_lv.[COLOR=#000080]email[/COLOR] = yemail.[COLOR=#0000ff]text[/COLOR];
send_lv.[COLOR=#000080]emailconfirm[/COLOR] = yemail.[COLOR=#0000ff]text[/COLOR];
send_lv.[COLOR=#000080]attribute7[/COLOR] = sendFname;
send_lv.[COLOR=#000080]attribute2[/COLOR] = sendLname;
send_lv.[COLOR=#000080]attribute25[/COLOR] = [COLOR=#000080]2[/COLOR];
send_lv.[COLOR=#0000ff]sendAndLoad[/COLOR][COLOR=#000000]([/COLOR][COLOR=#ff0000]“http://www.mydomain.com/mailinglists/?p=subscribe&id=1”[/COLOR], receive_lv, [COLOR=#ff0000]“POST”[/COLOR][COLOR=#000000])[/COLOR];
[COLOR=#0000ff]gotoAndPlay[/COLOR]COLOR=#000000[/COLOR];
[COLOR=#0000ff]trace[/COLOR]COLOR=#000000[/COLOR];
setStatusCOLOR=#000000[/COLOR];
[COLOR=#000000]}[/COLOR];
[/LEFT]
[/FONT]
SO basically, Im trying to submit to a phplist using the code above.
The top method (commented out), work, but obviously opens a browser window which I dont want.
The second method doesnt, and the only difference I can see in the way that the data is being sent is the send_lv[“list[2]”] = “signup”, or at least th evariable named “list[2]”.
I cannot change this variable name PHP side so I have to find a solution using AS 
Ive tried using:
this.send_lv[“list[2]”] = “signup”;
_parent.send_lv[“list[2]”] = “signup”;
this._parent.send_lv[“list[2]”] = “signup”;
To no avail, if its of any iterest, when I trace out send_lv everything comes out fine except that the square brakcets from [“list[2]”] are URL encoded …could this be stopping the PHP from seeing the variable correctly?
Thanks to anyone that can help…this is seriously frustrating!
Zaid