| | |
PHP Popup Window...
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Apr 2008
Posts: 31
Reputation:
Solved Threads: 0
Is it possible to get a PHP page to popup in a new page after a form post? Then, return information from the popup page to the parent page? Right now when I post my data, the browser window navigates to the new page and I have no way to get the data from my PHP popup page back to the parent page.
Thanks in advance,
M
Thanks in advance,
M
-1
#2 Oct 18th, 2009
I don't think that php can communicate between web browser windows. You could use javascript to create parent-child relationships and use a mix of php/js to display a popup.
You may be better off using a lightbox type popup that displays the sent data, that way you don't annoy your users by opening a new window.
Remember that ALL your form data should be passed to the $_POST variable so that you have all the data to hand to display in a lightbox if required - no need for any messy $_SESSION or $_GET variables.
You may be better off using a lightbox type popup that displays the sent data, that way you don't annoy your users by opening a new window.
Remember that ALL your form data should be passed to the $_POST variable so that you have all the data to hand to display in a lightbox if required - no need for any messy $_SESSION or $_GET variables.
Last edited by ardav; Oct 18th, 2009 at 5:17 am.
Happy Humbugging Christmas
•
•
Join Date: Oct 2009
Posts: 12
Reputation:
Solved Threads: 0
0
#3 Oct 18th, 2009
Your pop-up window should have the same session as the main browser window. Since php is a server script, it can handle session data. That would be the link in between those windows. Write to session data from the pop-up and retrieve it with the main window. If the session should differ, you can always put the data on a file on the server and retrieve it from there, or you can use a database if it is accessible for you.
![]() |
Similar Threads
- PHP popup (PHP)
- Popup Window from parent window (JavaScript / DHTML / AJAX)
- Using an html form button to open a popup window (JavaScript / DHTML / AJAX)
- About Popup Window (PHP)
- how to pass the value in popup window (PHP)
- Please help me with my javascript popup window! (ASP.NET)
- Javascript Popup Window (JavaScript / DHTML / AJAX)
- Popup window (ASP.NET)
- Make An Asp Popup Window--help Me About This... (JavaScript / DHTML / AJAX)
Other Threads in the PHP Forum
- Previous Thread: From newest to oldest
- Next Thread: Very simple loop array help
| Thread Tools | Search this Thread |
Tag cloud for php, popup
activation advanced ajax archive array arrays asp beginner body broken class close cms confirm curl data database date display download dropdownlist eclipse email error execute external file files flash flex form forms function functions gentoo hack html image include integration java javascript jquery key lamp libcurl limit link links linux login loop mail malfunction menu methods multiple mysql navigation network object oop outofmemmory password paypal php post programmer provider query remote results script search security session smash sms soap sockets spam specific sql subscription support! survey traffic trouble tutorial upload user validation vbulletin video web webdesign websitecontactform xml youtube zend







