OT: PHP Question, Opening a dynamic page in a new window |
|
Porsche, and the Porsche crest are registered trademarks of Dr. Ing. h.c. F. Porsche AG.
This site is not affiliated with Porsche in any way. Its only purpose is to provide an online forum for car enthusiasts. All other trademarks are property of their respective owners. |
|
OT: PHP Question, Opening a dynamic page in a new window |
ThinAir |
Apr 6 2005, 01:54 PM
Post
#1
|
Best friends Group: Members Posts: 2,553 Joined: 4-February 03 From: Flagstaff, AZ Member No.: 231 Region Association: Southwest Region |
I want to create a dynamic web page that opens in a new window of a particular size. I understand about using the form action with a php page as the action so that it processes what I pass to it, but I'm wondering how to get the result to open in it's own window.
Seems like I remember some behaviour similar to this here at the club with the pop-up that tells you when you have a new PM, so I'm wondering if any of you guru's can tell me how to approach this. I'll be eternally grateful! |
ThinAir |
Apr 6 2005, 05:14 PM
Post
#2
|
Best friends Group: Members Posts: 2,553 Joined: 4-February 03 From: Flagstaff, AZ Member No.: 231 Region Association: Southwest Region |
I think I've got it figured out. If I use this Javascript:
window.open('pagename.php?id=2','title','width=640,height=480'); Then I can have the pagename.php grab the value from the url by evaluating $_GET[id] and generating the response page based upon the submitted value. I've never worked with Get as a form method so it had not occured to me that I could simulate this. This solution is actually easier because I don't need forms in my calling page - I can just use links that call the Javascript. Thanks, Randy for the inspiration! |
Lo-Fi Version | Time is now: 21st September 2024 - 06:42 PM |
All rights reserved 914World.com © since 2002 |
914World.com is the fastest growing online 914 community! We have it all, classifieds, events, forums, vendors, parts, autocross, racing, technical articles, events calendar, newsletter, restoration, gallery, archives, history and more for your Porsche 914 ... |