Welcome to WebmasterWorld Guest from

Forum Moderators: incrediBILL

Message Too Old, No Replies

Form mail

Complex activities with form mail



6:58 am on May 3, 2001 (gmt 0)

Inactive Member
Account Expired


This is driving me mad. I have form A where people fill in details. I then validate the form and open a standard format page with those details on using javascript "document.write()" etc and get the values using "window.opener.form1.etc"
which works fine. However, I need also to use form mail to email some of those details to me and if I do it at the same time as creating the new page, the submission form comes up and the javascript is then trying to get the values from the submission page which it cant. Ive tried doing the form mail when I close the created page but there is no "onWindowClose()" function. So Im stumped. It would be useful if I could delay the page creation until the form mail had finished but it just starts a new thread and continues. Any ideas anybody help.
3:53 pm on May 3, 2001 (gmt 0)

Preferred Member

10+ Year Member

joined:Oct 26, 2000
votes: 0

I am not sure I completely understand what you are trying to do, but here are two thoughts:

At the end of the validation function use JS to submit the form. Then load your new page

You might need to use a hidden form, fill it from the user form, submit it.

Could be you need a combination of the two.

4:05 pm on May 3, 2001 (gmt 0)

Senior Member

WebmasterWorld Senior Member agerhart is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 29, 2001
votes: 0

I know that you may not want to use it, but this can be done very simply using ASP. I have done this on a number of different occasions using ASP

Just a thought


4:22 pm on May 3, 2001 (gmt 0)

Inactive Member
Account Expired


Thanks guys. I suspect this is one of the many things I tried but will give it a go. The problem was that having filled in details in form A and validated them, I then open a new page and using javascript, get the values from the "window.opener" page and manipulate the values to fill certain fields on the new page. Once this is presented to them, the user can then check it then print it and close it. The problem was that if I tried to submit as I opened the new page, the "submission results" page was now in memory and the new page couldnt access the "window.opener" page to get the values.
But I have had a couple of thoughts, I might put in a time delay to let the submission results page come through and be closed before opening the new page or, set a value in a cookie that once the opener page is reloaded it needs to submit the form.