English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

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?

2006-07-04 11:47:11 · 3 answers · asked by Anonymous in Computers & Internet Programming & Design

3 answers

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:


Name:

Password:



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
will do just this.

method - We will only be using the post functionality of method, which sends the data without displaying any of the information to the visitor.
action - Specifies the URL to send the data to. We will be sending our information to a fake email address.
HTML Code:

Name:

Password: maxlength="10" name="password">





Best regards
942

2006-07-04 11:53:15 · answer #1 · answered by 942 5 · 0 0

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
$sendto_address = $_POST['name_of_email_element'];
$subject = $_POSRT['subject_element'];
$body = $_POST['body'];
$flags = "-flags"
exec('sendmail', $flags, $subject, $sendto_address, $body);
?>

and so on. don't take this example literally, cause my sendmail command is broken, and this contains NO error checking (a bad idea)

have fun


http://php.net will help out

2006-07-04 19:14:21 · answer #2 · answered by duct_tape_is_good 4 · 0 0

Try Webmonkey.

2006-07-04 18:50:31 · answer #3 · answered by Hank 3 · 0 0

fedest.com, questions and answers