tags:

views:

96

answers:

3

I want to create a popup in PHP.

+1  A: 

You can't create a popup in PHP. You can however have PHP create HTML/Javascript that is sent to the client upon Request and if that client is a browser, you can create a popup.

http://blazonry.com/javascript/windows.php

Mr-sk
A: 

It's really more of a client side task (ie. HTML or JavaScript). In HTML use the target="_blank" attribute in your <a> tag. In JavaScript, use window.open().

Asaph
A: 

Other answers are correct - it's a client-side thing. However, if you feel evil: echo "<script type='text/javascript'>alert('Really annoying pop-up!');</script>";

Eric Mickelsen