Jump to content

Recommended Posts

Hi,

 

I have a form with the following tag:

<form name="graph_form" action="graphData.php" method="post" target="foo" onSubmit="window.open('', 'foo', 'width=500,height=350,status=yes,resizable=no,scrollbars=no')">

 

When the user clicks on the submit, graphData.php opens in a new window, which is what I wanted. Since the original window is still opened I'm wondering whether it is possible to change my choice on it, and resubmit the form and open another graphData.php window. So far in my graphData.php window I just have it print the choices the user made, and when I resubmit the form in the main window, the first opened window changed its contents. Instead I want a second window to open with the new contents. How can I do that?

 

Thanks!

             

Link to comment
https://forums.phpfreaks.com/topic/65684-opening-more-than-1-window/
Share on other sites

Yes the page is on the server. It opens to plot a graph, and since I have not worked out how to draw more than 1 graph on the same page, I want javascript to be able to open more than 1 page so that the user can look at both graphs at the same time.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.