Click to See Complete Forum and Search --> : mailto: doesn't work in form- help!


mark24317
10-02-2003, 06:32 PM
Hi,
I pasted an email and thank you page form script into my page that came with 1stpage 2000 and I don't get an email when testing the form. You can check the page out at http://www.buckhuntersecrets.com/popup.html . Here's the code I modified: The email is a valid address.
Thank you for any help!

<!-- START OF SCRIPT -->
<!-- For more scripts visit http://www.netpedia.com -->
<HTML><HEAD><TITLE>Verify Form</TITLE></HEAD>
<BODY BGCOLOR="FFFFFF">


<FORM method="POST" action="mailto:mark@buckhuntersecrets.com" onSubmit="alert('Thank You!');">
<B>Please enter your name and<br> email address on the same line: </B><input NAME="username" size="30">
<input type=submit onBlur="doVerify()" value="Submit">
<input type=reset value="Start over">

<SCRIPT LANGUAGE="javascript">
function doVerify()
{
location.href = "http://www.buckhuntersecrets.com/topten.html"
}
</script>


</form>
<!-- END OF SCRIPT -->

Khalid Ali
10-02-2003, 09:56 PM
Technically you can not do what you are trying to.For this purpose the only valid solution is a serverside programming language.

mark24317
10-02-2003, 10:07 PM
Thanks for the email,

I'm not as technically competant as you are. What do you mean by that, and do you have any solutions to my problem? Why does 1stpage2000 have a plug in script that does this if it's not possible? All I did was change the fields to match my parameters.

Thanks for the quick reply!
Mark
http://www.buckhuntersecrets.com

Khalid Ali
10-03-2003, 07:19 AM
The reason it won't work is that when you click on the submit button,first it calls the onblur event,and right after tht it calls the onsubmit event,It does not give enough time to the browser to trigger the action event.since action event is not executed you will not get email at all.
The only possibility(I am guessing) probably is that you have another frame where you want to open the thank you page then it might be able to execute the action attribute...

Originally posted by mark24317
.........Why does 1stpage2000 have a plug in script that does this if it's not possible? All I did was change the fields to match my parameters.

Thanks for the quick reply!
Mark
http://www.buckhuntersecrets.com

for this I guess you will have to send them an email..:D

mark24317
10-03-2003, 08:11 AM
Hi Khalid,
What would you suggest someone use who has no programming ability, if they want to ask for a name and email address in a popup, have the information sent to them, and automatically send the person filling out the form to a web page?
Thanks,
Mark