A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: navigateToURL with PHP POST

  1. #1
    Senior Member
    Join Date
    Jul 2008
    Posts
    391

    navigateToURL with PHP POST

    So I googled this problem and found like 3 threads with the exact same problem and what fixed their problem didn't fix mine, plus those threads are pretty dated. So I thought I'd get a more up to date answer.
    PHP Code:
    var req:URLRequest = new URLRequest ("http://localhost/SE/processimage.php");
    var 
    vars:URLVariables = new URLVariables ();
    vars.awd "awd";
    req.method "POST";
    //req.method = URLRequestMethod.POST;
    req.data vars;
    navigateToURL (req
    PHP Code:
    echo $_POST ['awd'];
    echo 
    $_GET ['awd']; 
    When I load that url the variable is sent using the GET method instead. It appears in the url in the browser and the browser shows an error first then "awd", meaning it worked for $_GET. I tried both req.methods and tried adding "_self" and "_blank" and also on different browsers. It still uses GET. I require your assistance please.

  2. #2
    Senior Member jweeks123's Avatar
    Join Date
    Mar 2006
    Posts
    1,124
    What about your server? Have you tried rebooting it? Seems like there may be an issue there.

  3. #3
    Senior Member
    Join Date
    Jul 2008
    Posts
    391
    I'm using WampServer and I tried restarting it. But how could it be an issue on the server? The PHP script is working perfectly fine.

  4. #4
    Senior Member jweeks123's Avatar
    Join Date
    Mar 2006
    Posts
    1,124
    Actually this is going to sound dumb but I've had this issue. Try moving the req.data = vars above the req.method call.

  5. #5
    Senior Member
    Join Date
    Jul 2008
    Posts
    391
    I was hoping it would be a weird fix but unfortunately it didn't make a difference..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center