POST problem in flash

  • Tdotwire
  • Proficient
  • Proficient
  • User avatar
  • Joined: Jul 18, 2004
  • Posts: 486
  • Loc: Toronto
  • Status: Offline

Post May 12th, 2005, 10:39 pm

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";
dat.send("http://localhost/flash/nice.phpf","_blank","POST");
  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

thanks
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post May 12th, 2005, 10:39 pm

  • Tchuki
  • Mastermind
  • Mastermind
  • No Avatar
  • Joined: Sep 30, 2004
  • Posts: 1774
  • Loc: Edinburgh
  • Status: Offline

Post May 12th, 2005, 11:49 pm

Take a look at the following tutorial :

http://www.kirupa.com/developer/actions ... _email.htm
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Joined: Jun 26, 2003
  • Posts: 1402
  • Loc: Philadelphia, PA
  • Status: Offline

Post May 13th, 2005, 9:42 am

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
  • Joined: Aug 08, 2004
  • Posts: 45
  • Loc: Branford CT
  • Status: Offline

Post May 13th, 2005, 6:38 pm

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 54 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
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.