multipe action form?
Hey all.
right now i have one of those splash pages.. that says please enter your email here to be notified of launch date...
now in that form i have the action="mailto:[email protected]"
soo... how can i also direct the page to go somewhere else after i hit submit..
before i could do it with action="newpage.html"
without using perl or php (we don't have php at work)
what i mean is after they hit submit.. the browser takes you to a page that says.. thanks and bla bla bla..
thx.
Brian Farkas posted this at 00:34 — 3rd April 2002.
They have: 1,015 posts
Joined: Apr 1999
Without using PERL, I don't believe this can be accomplished. However, check with your ISP to see if they offer a form processing script such as formmail (http://www.worldwidemart.com/scripts/)
Good luck,
Brian Farkas
The Webmistress posted this at 08:41 — 3rd April 2002.
She has: 5,586 posts
Joined: Feb 2001
I agree with Brian, check with your host what formmail scripts they offer for form processing then you would have something like this
form method=POST action=http://home.com/cgi-bin/mailto:[email protected]
and you could use this to redirect to a new page
INPUT TYPE=hidden name="redirect" value="http://www.yourdomain.com/thanks.html"
Julia - if life was meant to be easy Michael Angelo would have painted the floor....
dk01 posted this at 00:08 — 7th April 2002.
He has: 516 posts
Joined: Mar 2002
If you absolutely can't use any PERL PHP ect then I would use the following in some way to get your result:
I know this would call a function when the user submits a form and not after it opens the mail program but i bet you could use this or write a function using mailform.submit() I would still suggest using something like what is offered at http://www.bigbiz.com/forms.html
Good Luck! Adios!
-dk
ktown posted this at 17:26 — 10th April 2002.
They have: 34 posts
Joined: May 2001
thank you all for your replies.. for some reason i didn't get a notification email so i thought you guys had forgotten about me.
but you didn't
thanks .
i absolutely cannot use and server side scripting languages for whatever reasons that my boss might have...
Unfortunatelly i'm no JavaScript wiz either - can someone recommend any website that might have something i am looking for?
ktown posted this at 18:22 — 10th April 2002.
They have: 34 posts
Joined: May 2001
allright this code send the form automatically & then takes me to the specified home page...
http://www.ericphelps.com/scripting/email/index.htm worked!"
>
<script>
document.mailform.submit();
document.location.href="http://www.ericphelps.com/";
</script>
Is there a way that i can alter it that it waits for me to acutally hit the send button because right now as soon as you enter the page it sends the form.. so basically the form is empty.
dk01 posted this at 20:34 — 10th April 2002.
He has: 516 posts
Joined: Mar 2002
I haven't tested it but I think the below is correct syntax. Let me know.
<html>
<head>
<script language="Javascript">
function SubmitMyForm() {
document.mailform.submit();
document.location.href="http://www.ericphelps.com/";
}
</script>
</head>
<body>
<form
name="mailform"
action="mailto:[email protected]?subject=Email form test"
method="post"
enctype="text/plain"
>
<input
type="hidden"
name="body"
value="The HTML code at <a href="http://www.ericphelps.com/scripting/email/index.htm" class="bb-url">http://www.ericphelps.com/scripting/email/index.htm</a> worked!"
/>
<input type="button" name="submitbutton" value="Submit The Form!" onclick="SubmitMyForm();" />
</form>
</body>
</html>
That's it I think!
-dk
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.