Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Please help,Loadvars does not post! Flash MX2004

Status
Not open for further replies.

jubalj

IS-IT--Management
Oct 5, 2003
13
NZ
I really hope someone can help me, I'm going mad trying to work out why this wont work;

I am trying to use loadvars to 'post' multiple variables to a remote php script. But no matter what i try it only seems to be going though as a GET, rather then a POST!

I have tried to cut everything down to the bare minimum to see if it would help, but alas no.

Here is my Flash Mx 2004 pro code: (just an empty file with this code)
"
senddata_lv = new LoadVars();
senddata_lv.test = "cmon, please post this.";
senddata_lv.send(""
I've changed publish settings to Player 6, AS v.1 but that hasnt made a difference.

PHP script:
<?php
echo &quot;post = &quot; . $HTTP_POST_VARS[&quot;test&quot;];
echo &quot;<br>get = &quot; . $HTTP_GET_VARS[&quot;test&quot;];
?>

The output is always for the 'get' variable.. I'd appreciate any help that you can offer.

Regards
Jubal
 
i'll repost the send line since it isnt correctly displayed above.

senddata_lv.send(&quot;<URL>&quot;,&quot;_blank&quot;,&quot;POST&quot;);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top