POST problem in flash

  • Tdotwire
  • Proficient
  • Proficient
  • User avatar
  • Posts: 486
  • Loc: Toronto

Post 3+ Months Ago

I am trying to make a flash actionscript program simply post data into a php script

so far my code is as follows

Code: [ Select ]
var dat:LoadVars = new LoadVars();
dat.hello = "nice";
  1. var dat:LoadVars = new LoadVars();
  2. dat.hello = "nice";
  3. dat.send("http://localhost/flash/nice.phpf","_blank","POST");

now on the php side is simply checks if a POST or GET has been made and then marks it in the database, so what happens on the php side wont effect what happens on the flash side.

Now, the situation with the flash is that regardless that I have the "POST" as a parameter in the send function of the loadVars class it still wont actually POST the variables, instead each time they end up being in the URL ?hello=nice, therefore being a GET.

I know this because the php script identifies in the database if it was a GET or a POST function, and I have made many other scripts to determine if a POST has been committed, but the GET is always there instead.

Now what am I doing wrong here, how do I get it to actually POST the variables...?

any help would be fine

  • Tchuki
  • Mastermind
  • Mastermind
  • Tchuki
  • Posts: 1774
  • Loc: Edinburgh

Post 3+ Months Ago

Take a look at the following tutorial : ... _email.htm
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

I don't work with server-side Flash, so I can't tell you for sure, but could it have anything to do with the ' f' at the end of your URL?
  • mtheory
  • Beginner
  • Beginner
  • User avatar
  • Posts: 45
  • Loc: Branford CT

Post 3+ Months Ago

The "f" in the file extension is preventing the server from recognizing the file as php and treating it like php.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 4 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum

© 1998-2016. Ozzu® is a registered trademark of Unmelted, LLC.