Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Popup window question

Status
Not open for further replies.

stevanb

Technical User
Oct 4, 2002
58
US
Is there way to make a popup window close when you push the submit button on a send mail script



<form action=&quot; method=&quot;POST&quot;>


<input type=hidden name=&quot;to&quot; value=&quot;&quot;>
<input type=hidden name=&quot;redir&quot;
value=&quot;&quot;>




First Name: <input type=text name=&quot;FirstName&quot; size=&quot;20&quot;><br>
Email Adress: <input type=text name=&quot;EmailAdress&quot; size=&quot;20&quot;>
<P align=center>
<input type=submit value=&quot;Submit Form&quot;>


Thxs STeve
 
Still not working? Do you still want it to open the new window, send the email, then close the new window?

First, change the <form> part:
<form action=&quot; method=&quot;POST&quot; target=&quot;_blank&quot;>

Then change the redirect page to:

<html><body onload=&quot;self.close();&quot;></body></html>

Rick -----------------------------------------------------------
 
Here it what i did

Still goes to After sending ???

<form action=&quot; method=&quot;POST&quot; target=&quot;_blank&quot;>
<input type=hidden name=&quot;to&quot; value=&quot;Subscribe@cruisewarehouse.cc&quot;>
<html><body onload=&quot;self.close();&quot;></body></html>
First Name: <input type=text name=&quot;FirstName&quot; size=&quot;20&quot;><br>
Email Adress: <input type=text name=&quot;EmailAdress&quot; size=&quot;20&quot;>
<P align=center>
<input type=submit value=&quot;Submit Form&quot;>
 
Keep the form like this:

<form action=&quot; method=&quot;POST&quot; target=&quot;_blank&quot;>
<input type=hidden name=&quot;to&quot; value=&quot;Subscribe@cruisewarehouse.cc&quot;>
First Name: <input type=text name=&quot;FirstName&quot; size=&quot;20&quot;><br>
Email Adress: <input type=text name=&quot;EmailAdress&quot; size=&quot;20&quot;>
<P align=center>
<input type=submit value=&quot;Submit Form&quot;>

Does the pearl script redirect to a thank you page, or display it on the same page? Wherever the thank you page is is where you need to put this:
<html><body onload=&quot;self.close();&quot;></body></html>
(add that in place of all the code in the thank you page--make sure you don't delete the sending code;-))

Rick -----------------------------------------------------------
 
It is the same popup window justthe page changes in it

Where should i put the <html><body onload=&quot;self.close();&quot;></body></html>

In the send page or the thank you page or??

I do not know why i am having such a problem with this
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top