I am making a website and need to make text fields to send information to my e mail?
ghj g
2007-02-22 13:27:43 UTC
i am in the process of making a web page on a free hosting website and i need to know HOW TO MAKE TEXT BOXES THAT TRANSFER THE INFORMATION THAT IS ENTERED IN THEM DIRECTLY TO MY E-MAIL!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Four answers:
dm-dnd
2007-02-24 01:27:38 UTC
Check out this free form generator http://www.intrinzicdesignz.com/formgen/
anonymous
2007-02-22 13:31:52 UTC
you will have to create a server side program or use front page server extensions to do that. I usually use php for the server side script. then you will have your HTML form post the values to the server side script.
This is 9 years old. Ask them about a CGI script or you can use or PHP if they will let you. This is what I used. On a free site though you may ask to see what they have. They may have this already someplace.
-------------------- This is the cgi script----------------------
#!/usr/local/bin/perl4
push (@INC, '/cgi-bin');
require ('cgi-lib.pl');
# This should match the mail program on your system.
$mailprog = '/usr/sbin/sendmail';
# This should be set to the username or alias that processes the
# requests
#------ Change 1 ----- Replace the login with your actual login name
$recipient = "you\@yourdomain.org";
# Print out a content-type for HTTP/1.0 compatibility
print "Content-type: text/html\n\n";
# Print a title and initial heading
print "Order Form";
&ReadParse;
#------ Change 2 ----- Replace the login with your actual login name
open (MAIL, "|$mailprog $recipient") || die "Unable to send request\nPlease send e-mail to you\@yourdomain.org, Thank you\n";
#open (MAIL, ">test") || die "Cannot open STDOUT: $!\n";
print MAIL "Reply-to: $in{'email'}\n";
print MAIL "Subject: Feedback Form\n";
print MAIL "\n\n";
#print "*$#in_key\n";
foreach $i (0 .. $#in_key){
#print "$in_key[$i] = $in_val[$i], i = $i
";
print MAIL "$in_key[$i] = $in_val[$i]\n";
}
print MAIL "-----------------------------------------------\n";
close (MAIL);
# ------Change 3-------- (Optional): You can replace some of the words below.
# You may want to not change it first and test it online.
Send your comments, suggestions, then press the "Send E-Mail"
button at the bottom of the form. All fields are optional. Please take the time to register. Fill out the e-mail portion in registration if you want a reply.
TEXT:
Registration
How often can we send our message?
Does your mail tool support pictures, colors?
Please enter Your first name
Please enter you last name
Please enter your E-Mail address
Street address
City
State/Province
Country
Zip/Postal code
[ DO NOT CLICK MORE THAN
ONCE ]
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.