PHP processes form data and triggers a popup window

PHP code triggers popup window

Posted 14 August 2009 - 07:29 PM

Hello and thanks for your time. I'm wondering if the following code is possible. I have a PHP page with a form on it. Upon submitting the form the PHP code should trigger a popup window based on an if/else statement. It's not quite working, so I'm wondering if is even possible. Check it out...

Replies To: PHP code triggers popup window

Re: PHP code triggers popup window

Posted 14 August 2009 - 07:35 PM

Sounds like you want Javascript. I'm guessing if something is wrong in the form you wanna pop up a window? Well, without re-submitting the form, it's not possible.

Otherwise, you could have the page the code is submitted to check whatever you want, and if you want the window, then pop it up with js or something....but that's the only way you could use PHP to do this.