Forum Moderators: open
Why don't you just make the submitted result whatever you want the link to be? Submit form -> server side proccessing -> response redirects to link?
If you **do** need two windows -
function submitForm(form) {
var win = open('link.html');
form.submit();
}
(Shortened for brevity)
It's type that isn't reseted to null after striking key "reset". This way you can pass anything that you wanted to pass through $_GET, and even without escaping the spaces, etc.
Then to get the passed things just use:
echo $_POST["get"];
Best regards
Michal Cibor