
<br />
Hi again everyone!<br />
<br />
Here is the form: <br />
<form name="WINDOW-owner" action="cgi-bin/form2002.cgi" method="post"><br />
<input type="hidden" name="owner" value="you@yoursite.com"><br />
<div class="formtext">TO: <!-- e --><a href="mailto:me@mysite.com">me@mysite.com</a><!-- e --></div><br />
<div class="formtext">FR: <input name:"useremail" type="text" size="30" value="Enter Your E-mail address here"></div><br />
<div class="formtext"><textarea rows="7" cols="45" name="QUESTIONS" wrap="virtual"></textarea></div><br />
<div class="formtext"><input type="submit" value="Submit"> <input type="reset" value="Reset"> <br />
<INPUT TYPE="button" VALUE="Close" onClick="window.close()"></div><br />
</form><br />
<br />
Clicking the Submit button <br />
When the submit button is clicked I want the form.html page to go automatically to the thankyou.html page.<br />
<br />
How? <br />
<br />
Thanks, Gandalf<br />


<br />
One dumb question though, what is the <br />
<br />
onclick="window.location='your_thank_you_page.html'"><br />
<br />
supposed to be?<br />
<br />
This is what my source code looks like now:<br />
<input type="submit" value="Submit" onclick="window.location='thanksemail.html'"> <input type="reset" value="Reset"> <br />
<INPUT TYPE="button" VALUE="Close" onClick="window.close()"><!--content-->I don't have my JavaScript book with me, but I believe it's an object giving information about the location of the url, that is, in which window you end up when click the button... (Don't quote me, ok...?)<!--content-->So should the source look like<br />
<br />
THIS:<br />
<br />
<input type="submit" value="Submit" onclick="window.thanksemail='thanksemail.html'"> <br />
<br />
OR THIS:<br />
<br />
<input type="submit" value="Submit" onclick="window.email_window='thanksemail.html'"> <br />
<br />
Sorry, but I really don't know JS.<br />
<br />
<br />
Thanks, Gandalf<br />


<br />
Oh, and, you shouldn't have a 'close window' button there if you want the visitor to be sent to another page!<br />
<br />
Edit: They're telling me in the other thread that a lot of people can't use a form like this, because they don't have any e-mail clients on their computers...

<br />
<input type="submit" value="Submit" onclick="window.location='thanksemail.html'"><br />
<br />
but still cant get it to work.<br />
<br />
Ty, G<br />

<br />
Sorry...
