Could someone help me make the submit part of a HTML form, and make it send to an Email address?
anonymous
2006-07-04 15:47:11 UTC
I need to create a form, but after they fill it out, i want them to hit the submit button and the info will send to my email, could someone help me create that part for me?
Three answers:
942
2006-07-04 15:53:15 UTC
Before we teach you how to make a complete form, let's start out with the basics of forms. Input fields are going to be the meat of your form's sandwich. The has a few attributes that you should be aware of.
type - Determines what kind of input field it will be. Possible choices are text, submit, and password.
name - Assigns a name to the given field so that you may reference it later.
size - Sets the horizontal width of the field. The unit of measurement is in blank spaces.
maxlength - Dictates the maximum number of characters that can be entered.
HTML Code:
Do not use the password feature for security purposes. The data in the password field is not encrypted and is not secure in any way.
HTML Form Email
Now we will add the submit functionality to your form. Generally, the button should be the last item of your form and have its name attribute set to "Send" or "Submit". Name defines what the label of the button will be. Here is a list of important attributes of the submit:
In addition to adding the submit button, we must also add a destination for this information and specify how we want it to travel to that place. Adding the following attributes to your
Best regards
942
duct_tape_is_good
2006-07-04 23:14:21 UTC
you need to know a server-side scripting language, such as php, asp or cfm.
if you are on a *nix server with php and sendmail installed, you can do something like