TrAsH Posted September 18, 2006 Share Posted September 18, 2006 Hi Guys,would really appreciate your help in this area.I have a form submission page on my flash site which sends the form to a php script for e-mail submission. The php script is working fine and I am receiving the desired e-mail.However, whenever the user submits the form from my Flash site, another window will pop up. I am trying to stop this windown from poping up as I want the user to stay on my Flash site. (I could specify the pop up windown using [Header ("location: $location");] to specify the pop up URL, i want to totally diable this pop up]Thanks guys! ??? Quote Link to comment https://forums.phpfreaks.com/topic/21123-preventing-new-window-pop-up-after-e-mail-form-submission-to-php/ Share on other sites More sharing options...
AndyB Posted September 18, 2006 Share Posted September 18, 2006 Unless I misunderstood, something in your code opens a new window for some unspecified purpose and you want to disable it. So, find the part of your code that opens the new window and modify it. Quote Link to comment https://forums.phpfreaks.com/topic/21123-preventing-new-window-pop-up-after-e-mail-form-submission-to-php/#findComment-93812 Share on other sites More sharing options...
TrAsH Posted September 18, 2006 Author Share Posted September 18, 2006 Hi AndyB,thanks for the reply. But there's nothing that I can see that is opening up a new window. ???my php code (contact_us.php) is as below://=================================================================<?php$email_subject = "Customer Query";$body = "Query Details \r";$body .= "------------------------ \r";$body .= "Name: $name \r";$body .= "Contact Number: $contact_number \r";$body .= "Email: $email \r";$body .= "Address: $address \r";$body .= "Customer requirments: $requirements \r";$body .= "Other comments: $comments \r";mail("my@email.com", $email_subject, $body, "From: system@email.com");?>//=================================================================if i added the code below:$location = "http://www.mysite.com";header ("Location:$location"); it will open another window with my site but if i do not specify the wed address or omit the code completely it will try to open up "http://www.mysite.com/contact_us.php" as a new window.my actionscript code in my Flash site that calls on my php script://=================================================================gatherForm.send("http://www.mysite.com/contact_us.php", "_blank", "POST");//=================================================================Thanks again for looking through this.Best Regards,TrAsH :-\ Quote Link to comment https://forums.phpfreaks.com/topic/21123-preventing-new-window-pop-up-after-e-mail-form-submission-to-php/#findComment-93822 Share on other sites More sharing options...
Daniel0 Posted September 18, 2006 Share Posted September 18, 2006 It's probably the actionscript doing it, but I can't help you with that since I don't know actionscript. Quote Link to comment https://forums.phpfreaks.com/topic/21123-preventing-new-window-pop-up-after-e-mail-form-submission-to-php/#findComment-93825 Share on other sites More sharing options...
ale_jrb Posted September 18, 2006 Share Posted September 18, 2006 It's this line that's doing it. The "_blank" secion tells it to open a new window to send the form. I guess you could change that, but it may be needed - I don't know enough about Flash to help you with this. If you need to have that part there, replace the "_blank" with "_self" - though this might mess up your flash...gatherForm.send("http://www.mysite.com/contact_us.php", "_self", "POST");Good luck. Quote Link to comment https://forums.phpfreaks.com/topic/21123-preventing-new-window-pop-up-after-e-mail-form-submission-to-php/#findComment-93837 Share on other sites More sharing options...
TrAsH Posted September 18, 2006 Author Share Posted September 18, 2006 Hi ale_jrb / Daniel0,Thanks for the tips. Yeps its the ActionScript allright.... by changing _Blank to _self, i prevented the new window from popping up. However, I am not able to get my Flash to continue from where it was at..... but at least i'm halfway to where i wanna get. ;DThanks! Quote Link to comment https://forums.phpfreaks.com/topic/21123-preventing-new-window-pop-up-after-e-mail-form-submission-to-php/#findComment-93953 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.