Click to See Complete Forum and Search --> : opening a new window with the form values?


pelegk1
04-14-2005, 03:55 AM
i have a window with sarch paramaters, and i want that when a search button pressed then a new window will be opened and will recive all of the form values!
1)how do i make a "submit" button open a new window?
2)how do send the form values tothe new opened window?
thnaks i nadvance
peleg

Lightfoot82
04-14-2005, 06:09 AM
Hi I don't know of any way to do it using just HTML you would be better putting in some JavaScript to Open up a new window - Script would also allow you to pass variables over to the next window.

Either Java Script if you want to keep it local or Java Server pages / PHP for a server respons.

phpnovice
04-14-2005, 08:36 AM
1)how do i make a "submit" button open a new window?
2)how do send the form values tothe new opened window?
Using the transitional or frameset DOCTYPE, you can open a new window and send the form values to it without using any JavaScript at all:
<form ... target="_blank">
<fieldset>
...form contents...
<input type="submit" value="Submit">
</fieldset>
</form>
To process those values, your form tag must specify an ACTION attribute that points to a server-side page -- which is where such search-type values would have to be processed anyway. The results of that search would automatically appear in the new window specified by the form tag's TARGET attribute.

pelegk1
04-14-2005, 09:31 AM
:)