Jump to content

php / HTML - How to open a new window


overlordofevil

Recommended Posts

Hello All,

 

I am trying how to figure out how to open a new window when processing a html form with php variables.

 

I know how to make a link open a new window with passing a php variable to get the specific results I want..

 

<a href='blanksheet.php?id=$id' onclick='window.open(this.href); return false;'>Print Sheet</a>

 

But What I would liek to do is set up a form something like a compare screen where you can check on the items you want and it will bring those items up on a single page. My goal is to make the form with multiple items and then when the user clicks submit they are taken to a new window where the request is processed.

 

I think this would be controlled by the form setup and the buttons but I haven't found any info on this and am hoping someone might have an idea that i can look into.  Not sure if this is considered an html or php question but any help would be appreciated.

 

Thanks

Bill

Link to comment
https://forums.phpfreaks.com/topic/182794-php-html-how-to-open-a-new-window/
Share on other sites

this is mostly likely a Javascript issue if you want to dynamically pop up new windows. I would advice against popping up new windows, because I personally hate it. But if you really want to, window.open() is probably the function you want to look into

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.