Form submit - link question

liunx

Guest
I'm really really new to this...<br />
<br />
I have a form on my page that sends me an email with the "action" command (i.e. action=mailto:[email protected]")<br />
<br />
What I want is for the user to see a new webpage upon clicking submit. So I want to receive the email AND redirect the user to a new webpage. Is this done with JAVA or CGI scripting only or can it be done with just HTML?<br />
<br />
Help!! Thanks!:confused: :confused:<!--content-->You might try this:<br />
<A HREF=http://www.webdeveloper.com/forum/archive/index.php/"mailto:[email protected]" target="top" onClick="location='mydomain.html'"">click here</a><br />
An experiment, but it worked in IE. NS opened the window minimized<!--content-->Thanks, but where would I put that? I don't want a mailto link, I want a form action command. Right now it looks like this:<br />
<br />
<form method="post" action="mailto:[email protected]?subject=form information" enctype="text/plain"><br />
<br />
which produces a pop up warning box about your email address being sent, etc., then when the user clicks "Continue", it emails me the form information, but then the page just stays there. I want the page to go to another URL that says "Thank you for your interest" etc.<br />
<br />
I don't think an HREF command would do it...<!--content-->you shouldnt use a mailto then - you need a cgi mailing script which does all the work for you. If you use the mailto command then because it uses your default mail client it makes it difficult to make it do what you want - and if the viewer doesnt have a mail client, then it wont let you send it.<br />
<br />
Search around on google or wherever and get a cgi mail script, and then put that in your cgi bin on your site: not everyone's allowed to do that though, so you might be a bit stuck.<br />
<br />
I've been told not to suggest him before, but I'll say again that you can probably get one at matt's script acrhive (<!-- m --><a class="postlink" href="http://www.scriptarchive.com">http://www.scriptarchive.com</a><!-- m -->) - it is there, i've just checked. It's called form mail and it lets you specify all those things you want above.<!--content-->Thanks...<br />
<br />
I just tried it by adding an "onclick="location='mydomain.html'" to the button properties, and it seems to work so far... The mail client thing may be an issue, but I guess that's okay for now.<br />
<br />
Thanks everyone.<!--content-->This is what I just tried out that works.<br />
<br />
<form method="post" action="mailto:[email protected]" target="top"<br />
onClick="location='mydomain.html'"?subject=form<br />
information" enctype="text/plain"><input type="submit" value="zj8674"onclick="checkFlag();"></center> <br />
</form><!--content-->
 
Back
Top