A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Quick Question - getURL

  1. #1
    An FKer
    Join Date
    Sep 2005
    Location
    Ontario
    Posts
    1,167

    Quick Question - getURL

    Hey,

    Ok so I have this php script that when run, sends and saves some information to a text file.

    Now heres the quick question.

    How do I go about telling the php script to run without having to open another window. I tried doing something like:

    getURL("photos/something/countPhotos.php,"_blank","POST);

    When that line occurs, it runs the php successfully and the php works and does what its supposed to. However, it opens a new window as well as stopping my flash file.

    Is there a solution?

    Many thanks

  2. #2
    Registered User Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,488
    getURL("photos/something/countPhotos.php", "POST");

  3. #3
    An FKer
    Join Date
    Sep 2005
    Location
    Ontario
    Posts
    1,167
    Thanks for the reply geezer,

    I actually thought about doing that, removing the _blank and when I tried that, when I clicked the button which should run the php script, the browser redirected itself to the php page.

    What needs to happen is that flash needs to continue on, when you click the button, the php script needs to run without having to display another browser.

    I hope you get what Im saying

  4. #4
    Registered User Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,488
    Wait, I think your suppose to use loadVariablesNum instead of getURL. I've got some forms that use that and go to a php script, even got it to write to a sql db, and read back from it, but they both use loadVariablesNum.

    mailform = "http://www.yoursite.com/mailform.php";
    loadVariablesNum(mailform, 0, "POST");

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