Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
12-24-2007, 01:37 PM #1
- Join Date
- Sep 2007
- Thanked 2 Times in 2 Posts
Form submition, new window (popup)
I have a few problems I'm trying to solve.
what I have is page with a form, containing some check-boxes (to compare items),
and three possible actions:
- View selected items
- Print selected items
- Compare selected items
- Open in new window (preferably with no status bar, command buttons etc')
if I change my forms' target t myWindow, and try to submit my form (via JS, i.e. myForm.submit()) IE7 blocks it as a popup although my window is already open.
another problem is if I set my forms' target (in raw HTML, no JS) to "_blank", the form is not submitted, and I'm getting only the current URL again in the new window.
Any ideas how I can perform one of the three actions with the requirements I have? I'm pretty stuck on this one...
12-27-2007, 04:29 AM #2
- Join Date
- Dec 2006
- Copenhagen, Denmark
- Thanked 5 Times in 5 Posts
PHP Example. Self-submitting form. When user submits the form a new page opens in a new window.
/* PHP statements, form handling */
<form action="" method="post" target="_blank">
<input name="Submit" type="submit">