| | |
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.
If you don't reply to your own thread or you can't find the solved link - you're off my Christmas list - permanently! Bah humbug!
•
•
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.
-1
#4 Oct 18th, 2009
Do you really need to duplicate $_POST data into $_SESSION vars? Not disagreeing, have done this myself in the past. With a lightbox type arrangement, no duplication required.
If you don't reply to your own thread or you can't find the solved link - you're off my Christmas list - permanently! Bah humbug!
![]() |
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
Views: 835 | Replies: 3
| Thread Tools | Search this Thread |
Tag cloud for php, popup
.net access adobe ajax ajaxcode ajaxhelp array asp autosuggest basic beginner buttons class cms curl data database date directory display dynamic ecommerce email errorlog file files flash folder form forms forum function functions gaming google href html if...loop image images include insert integration java javascript jobs joomla jquery lamp limit link linux login mail memmory menu methods mobile multiple mysql nodes oop open paypal php post projectmanager quality query rows schools script search security select session sessions sharepoint sms soap spam speed sql static tutorial upload validation variable vbulletin video web webdesign website wpf xml xslt y!os yahoo youtube zend







