inherit
163931
0
Feb 23, 2011 14:01:52 GMT -8
smokekills
9
February 2011
smokekills
|
Post by smokekills on Feb 21, 2011 2:00:38 GMT -8
I'm having a hard time creating a html code.
I want it to include like "field 1" and "field 2", like the example below.
Name: Bern Email: bernblop@hotmail.com
I want the script to include the "name" and "email" input field and attach that info and send it to my email, and once the user clicks submit it takes them to my page that says "thanks for sending the email" but how do I code that?
thanks in advance
|
|
inherit
123128
0
Feb 3, 2020 13:53:38 GMT -8
Malagrond
Remember, remember the 5th of November.
813
April 2008
malagrond
|
Post by Malagrond on Feb 21, 2011 8:36:45 GMT -8
<form action="mailto:your@email.com?subject=Subject%20you%20want" enctype="text/plain" method="post"> <input type="text" name="Name" /><br /> <input type="text" name="Email" /><br /> <input type="submit" value="Submit" name="submit" /> </form>
Note: Be sure to use %20 to represent spaces in the subject, and replace the example email with your own email.
That'll send you a rudimentary email with the values from the form fields. As far as redirecting them, that's a bit trickier as the form is client-side and messing with the form's submission can be a bit tricky (and I don't have a ton of experience with it). Try asking in the Code Request/Support forum for some help with that part, as it will be a bit of JavaScript.
|
|