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!! Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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? Quote Link to comment 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>'; } Quote Link to comment 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.