|
| Flash post to asp |
 |
Tue, 1 Aug 2006 06:17:24 +0000 |
Hello.
I want to post data from a Flash page to an aspx file.
This was my first actionScript try.
var my_lv:LoadVars = new LoadVars();
my_lv["pName"] = PL1getName;
my_lv["pScore"] = PL1getScore;
// Maybie i need this? my_lv.addRequestHeader(headerName,headerValue)
my_lv.send("http://127.0.0.1/testSite/WebForm1.aspx",
"_Blank", "POST");
I found this in this forum and have tryed diffrent ways but it dont send a
request for page at all..
So then i tryed this....
getURL("http://127.0.0.1/testSite/WebForm1.aspx?pName=" +
Pl1getName,"_Blank", "POST")
Yes this opens the page and sends the name but this is easy to manipulate...
Here is my ASP code for geting the data.
if(Request.Params["pName"] != "")
Label1.Text = Request.Params["pName"];
I know you think this should be posted on a flash forum page , but i think you
guys here can aswer the question better because the first code is the right way
to conect to PHP. And there must be a way in asp to recieve this information
too. (or to hide info in the getURL command) I will be happy if someone can
help.
Greetings Jørgen
|
| Post Reply
|
|
|
|
|
|
|
|
|
|