Re: Submitting form in new window!
| From: | Chris Hewitt | Date: | Tue, 09 Jul 2002 13:58:34 +0000 |
| Subject: | Re: Submitting form in new window! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-106363@lists.php.net to get a copy of this message | ||
Thomas,
Yes, I understand what you want to do, but this is a limitation of HTML itself, rather than PHP. There are no HTML commands for doing this. JavaScript, being client side, has much more control over the browser and can define window size etc. If, on your submit button, you use the onClick event to submit the form, then the only way to pass the data is by making up a GET string in the url.
At least, I have not found a way around this. The above solution is what I use. This assumes the client browser has JS turned on too, which in my case (on an intranet application) I can specify.
HTH
Chris
Thomas Edison Jr. wrote:
<input type=\"submit\" value=\"Add To Cart\"></font> This is the SUBMIT button that submits the form alongwith the Form Variables to a file called "Add2Cart.php" !! But this file simply opens in an unadministered new window.