A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: loadVariables problem

  1. #1
    Member
    Join Date
    Mar 2003
    Posts
    30

    loadVariables problem

    heres the code:

    _root.username = _root.adminlogin.username;
    _root.pass = _root.adminlogin.pass;
    loadVariables("/admin.php?username="+username+"&password="+pass,"" ,"POST");

    here's the error:

    Error opening URL "/admin.php?username=_level0.adminlogin.username&pas sword=_level0.adminlogin.pass"

    the URL exists. the PHP works.

    how can i send the contents of the input fields (username/pass) to the php file without that _level0.adminlogin. garbage?
    <3 steve.

  2. #2
    Senior Member Ex-Ess's Avatar
    Join Date
    Nov 2002
    Location
    York (England)
    Posts
    588
    loadVariables(""/admin.php","","POST");

    this should work.....if not make sure the variables are in the same level as the above script.

    eg
    username=_level0.adminlogin.username;
    password=_level0.adminlogin.pass;
    Last edited by Ex-Ess; 03-23-2003 at 08:45 AM.

  3. #3
    Member
    Join Date
    Mar 2003
    Posts
    30
    i tried this, and it s till sends the bogus link to the php.

    "/admin.php?username=_level0.adminlogin.username&pas sword=_level0.adminlogin.pass"

    all i want to do is send the content of the input fields to the php, but it sends it the name. ive been stuck for a while on this and im all out of ideas.
    <3 steve.

  4. #4
    Senior Member Ex-Ess's Avatar
    Join Date
    Nov 2002
    Location
    York (England)
    Posts
    588
    lemmie see the fla.

  5. #5
    Member
    Join Date
    Mar 2003
    Posts
    30

    :D

    i just figured out what i was doing wrong.

    i have to pass it username.text and password.text.

    thanks for your help, much appreciated.
    <3 steve.

  6. #6
    Senior Member Ex-Ess's Avatar
    Join Date
    Nov 2002
    Location
    York (England)
    Posts
    588
    Hmm....ok....not sure what you mean....glad you sorted it anyway.

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