View Full Version : Popup window with PHP?
hvlav79
08-26-2004, 04:56 AM
Hi guys. I need some help writing a code that will open a popup window automatically, as soon as a function is completed. I want to write it in PHP without using javascript. Is that possible? If not, how would I write it using javascript?
Thanks in advance!
amitbhawnani
08-26-2004, 08:43 PM
Nope its not really possible in PHP, PHP is a server side scripting language, you cant make things popup in the client machine...
Just do a google search for 'Javascript Popup Windows', ure gonna find a ton of usefulll stuff.
Cyber-SEO
08-26-2004, 10:47 PM
I think i know what your trying to do. Let's see if I have this right.
Lets say you are sending an email, and your code finished through everything you want to let the user know that the email was sent. Well here is what you do.
Setup a "SITE WIDE" session called lets say "SiteMessages" and on the bottom of the page you place something like this, well this code is ASP but you'll get the idea.
<%
If Len(Session("SiteMessage")) > 0 Then
%>
<script language="JavaScript">
alert('<%=Session("SiteMessage")%>');
</script>
<%
Session("SiteMessage") = ""
End If
%>
Let me know if I got it right or if you have any trouble understanding this.
vBulletin v3.0.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.