A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: php-browser problem

  1. #1
    funky see, funky do... Evert-Jan's Avatar
    Join Date
    Apr 2001
    Location
    where they've put me
    Posts
    115

    php-browser problem

    Hello everyone,

    the php page I created to send my mailform does open a new browser every time the mail is send!! I use the flash mx loadvars.send command. Does anybody know why php does this? Even if you don't give an output it a new window, a blank one.

    thanx in advance
    evert-jan

    Make it idiot-proof and they will make a better idiot.

  2. #2
    Registered User
    Join Date
    Feb 2001
    Posts
    13,041
    Hi,

    try the send-and-load instead of the send-only flavor of loadvars

    Musicman

  3. #3
    funky see, funky do... Evert-Jan's Avatar
    Join Date
    Apr 2001
    Location
    where they've put me
    Posts
    115
    Hi musicman

    tried that,but then it won't do anything at all. Dont know why...

    this my code
    Code:
    //start the output to the php page->
    	sendVars = new LoadVars();
    	sendVars.name = name;
    	sendVars.sendConfirm = sendConfirm;
    	sendVars.email = email;
    	sendVars.subject = subject;
    	sendVars.text = text;
    	trace(sendVars.toString());
    	debug = sendVars;
           sendVars.sendAndLoad"http://funkalot/mail.php", , "POST");
    what am i doing wrong?
    evert-jan

    Make it idiot-proof and they will make a better idiot.

  4. #4
    Moonlight shadow asheep_uk's Avatar
    Join Date
    Dec 2001
    Location
    London
    Posts
    2,010
    Change

    sendVars.sendAndLoad"http://funkalot/mail.php", , "POST");

    to

    sendVars.sendAndLoad"http://funkalot/mail.php", "_self", "POST");

    note the "_self"

    TE

  5. #5
    funky see, funky do... Evert-Jan's Avatar
    Join Date
    Apr 2001
    Location
    where they've put me
    Posts
    115
    thanks asheep_uk, but it still sends no messages at all...
    evert-jan

    Make it idiot-proof and they will make a better idiot.

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