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.
Mr-sk
2010-01-11 18:22:58
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
2010-01-11 18:23:09
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
2010-01-11 18:28:22