smc Posted February 4, 2007 Share Posted February 4, 2007 Hey, Basically I've got a script that tests the submissions from a form and takes action. I basically want something like this: if ( $decision == "reject" ) { popthatonephpfileup; } But I'm not sure how to make the pop up. To my knowledge header() can't do it so I'm kinda lost. Thanks for any help!! Link to comment https://forums.phpfreaks.com/topic/37060-solved-pop-up-windows/ Share on other sites More sharing options...
Orio Posted February 4, 2007 Share Posted February 4, 2007 You can't pop up windows with php. You need to output some javascript that will pop the window for you. Orio. Link to comment https://forums.phpfreaks.com/topic/37060-solved-pop-up-windows/#findComment-176979 Share on other sites More sharing options...
wildteen88 Posted February 4, 2007 Share Posted February 4, 2007 PHP cannot make a popup. You will need to make the client do that (the web browser). In order to do that you will need to output the relevant html/javascript to make a popup window Dang! Orio beat me Link to comment https://forums.phpfreaks.com/topic/37060-solved-pop-up-windows/#findComment-176980 Share on other sites More sharing options...
Jessica Posted February 4, 2007 Share Posted February 4, 2007 Javascript: http://www.scriptomizers.com/javascript/popup_creator Link to comment https://forums.phpfreaks.com/topic/37060-solved-pop-up-windows/#findComment-176981 Share on other sites More sharing options...
smc Posted February 4, 2007 Author Share Posted February 4, 2007 How can I trigger PHP to do that then? Header to a dummy page that has the pop-up then header's back to the original page? Link to comment https://forums.phpfreaks.com/topic/37060-solved-pop-up-windows/#findComment-176982 Share on other sites More sharing options...
wildteen88 Posted February 4, 2007 Share Posted February 4, 2007 Just echo the html out, example: if($something == true) { echo '<script type="text/javascript"> alert("Not true"); </script>'; } Link to comment https://forums.phpfreaks.com/topic/37060-solved-pop-up-windows/#findComment-176985 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.