HTML - E-mail Form (newbie)
Heyy
I've made an e-mail form looking like this: <form action="mailto:cs@byvejen.dk?subject=Portfolie Bot" method="post" enctype="text/plain"> <table><tr><td> Navn: <INPUT NAME="Navn" TYPE="text" VALUE="Skriv her" SIZE=20 MAXLENGTH=20><BR> E-mail: <INPUT NAME="E-mail" TYPE="text" VALUE="Skriv her" SIZE=20 MAXLENGTH=50><BR> Emne: <INPUT NAME="Emne" TYPE="text" VALUE="Skriv her" SIZE=20 MAXLENGTH=50><BR> Tekst: <INPUT NAME="Tekst" TYPE="text" VALUE="Skriv her" SIZE=20 MAXLENGTH=500><BR> </td></tr> <tr><td align=center> <INPUT TYPE="submit" value="Send" style="color: #ffffff; background-color: #000000"> </td></tr></table> </FORM> My problem/question is: How do i make an input box heigher ? If i change size it olny get longer..! Thanks in advance.. Similar TutorialsHello everyone! My form seems to work... but I'm not getting the submission in my e-mail! You can check it out he www.BoatingHitList.com/formtest.html Here's the code for my form: HTML Code: <form name="htmlform" method="post" action="html_form_send.php"> <table width="500px"> </tr> <tr> <td valign="top"> <label for="name">Name*</label> </td> <td valign="top"> <input type="text" name="name" maxlength="50" size="30"> </td> </tr> <tr> <td valign="top"> <label for="email">Email Address*</label> </td> <td valign="top"> <input type="text" name="email" maxlength="80" size="30"> </td> </tr> <tr> <td valign="top"> <label for="telephone">Location (city, state, country)*</label> </td> <td valign="top"> <input type="text" name="location" maxlength="50" size="30"> </td> </tr> <tr> <td valign="top"> <label for="telephone">Website Address*</label> </td> <td valign="top"> <input type="text" name="website" maxlength="50" size="30"> </td> </tr> <tr> <td valign="top"> <label for="telephone">Website Title*</label> </td> <td valign="top"> <input type="text" name="websitetitle" maxlength="50" size="30"> </td> </tr> <tr> <td valign="top"> <label for="telephone">Listing Category*</label> </td> <td valign="top"> <select name="category"> <option>Select Category <option>BOAT SHOWS/EVENTS <option>BOATING ASSOCIATIONS <option>BOOKS/MAGAZINES <option>BROKERS - NEW BOATS <option>BROKERS - USED BOATS <option>CHARTERS <option>CLASSIFIEDS <option>FINANCE/INSURANCE <option>FORUMS <option>MARINAS <option>PARTS/ACCESSORIES <option>REPAIR/MAINTENANCE <option>SERVICES </select> </td> </tr> <tr> <td valign="top"> <label for="comments">Website Description (25 words or less)*</label> </td> <td valign="top"> <textarea name="comments" maxlength="300" cols="25" rows="6"></textarea> </td> </tr> <tr> <td colspan="2" style="text-align:center"> <input type="submit" value="Submit"> </td> </tr> </table> </form> And here's the code for my php page - www.BoatingHitList.com/html_form_send.php HTML Code: <?php if(isset($_POST['email'])) { // CHANGE THE TWO LINES BELOW $email_to = "submit@boatinghitlist.com"; $email_subject = "Boating Hit List Submission"; function died($error) { // your error code can go here echo "We are very sorry, but there were error(s) found with the form you submitted. "; echo "These errors appear below.<br /><br />"; echo $error."<br /><br />"; echo "Please go back and fix these errors before submitting.<br /><br />"; die(); } // validation expected data exists if(!isset($_POST['name']) || !isset($_POST['email']) || !isset($_POST['comments'])) { died('We are sorry, but there appears to be a problem with the form you submitted.'); } $name = $_POST['name']; // required $email_from = $_POST['email']; // required $location = $_POST['location']; // required $website = $_POST['website']; // required $websitetitle = $_POST['websitetitle']; // required $category = $_POST['category']; // required $comments = $_POST['comments']; // required $error_message = ""; $email_exp = "^[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$"; if(!eregi($email_exp,$email_from)) { $error_message .= 'Please enter a valid e-mail address.<br />'; } $string_exp = "^[a-z .'-]+$"; if(!eregi($string_exp,$name)) { $error_message .= 'Please enter a valid name.<br />'; } if(strlen($comments) < 2) { $error_message .= 'Please enter a valid website description.<br />'; } if(strlen($error_message) > 0) { died($error_message); } $email_message = "Form details below.\n\n"; function clean_string($string) { $bad = array("content-type","bcc:","to:","cc:","href"); return str_replace($bad,"",$string); } $email_message .= "Name: ".clean_string($name)."\n"; $email_message .= "Email: ".clean_string($email_from)."\n"; $email_message .= "Location: ".clean_string($location)."\n"; $email_message .= "Website Address: ".clean_string($website)."\n"; $email_message .= "Website Title: ".clean_string($websitetitle)."\n"; $email_message .= "Listing Category: ".clean_string($category)."\n"; $email_message .= "Website Description: ".clean_string($comments)."\n"; // create email headers $headers = 'From: '.$email_from."\r\n". 'Reply-To: '.$email_from."\r\n" . 'X-Mailer: PHP/' . phpversion(); @mail($email_to, $email_subject, $email_message, $headers); ?> <!-- place your own success html below --> <p><center><img src="http://www.boatinghitlist.com/BHLlogo.gif"> <p><font face="calibri" size="4"> Thank you for submitting your website to BoatingHitList.com.</font> <p><font face="calibri" size="4"> Please make sure you include a link back to us on your website. All websites are individually reviewed to ensure they are placed in the correct category and that your website links back to us. Upon your website's approval, you will receive an e-mail notification. If your website is denied, you will receive an e-mail with the reason(s) your website was denied. <p>Choose one of the codes below to display our link back on your website: <p> <textarea rows="6" cols="30"> <a href="http://www.boatinghitlist.com" target="_blank"><img src="http://www.boatinghitlist.com/BHLicon.jpg" height="70" width="70" border="0"></a> </textarea> <p> Will display as: <p> <a href="http://www.boatinghitlist.com" target="_blank"><img src="http://www.boatinghitlist.com/BHLicon.jpg" height="70" width="70" border="0"></a> <p> <textarea rows="6" cols="30"> Visit <a href="http://www.boatinghitlist.com" target="_blank">www.BoatingHitList.com</a> for a directory of boating industry websites! </textarea> <p> Will display as: <p> Visit <a href="http://www.boatinghitlist.com" target="_blank">www.BoatingHitList.com</a> for a directory of boating industry websites! <p> <a href="http://www.boatinghitlist.com">CLICK HERE TO GO BACK TO www.BoatingHitList.com</a> <?php } ?> I have a feedback form with Perl but when sender send unicode Utf-8 content, I can not have a message in unicode utf-8. I have ....................................; $charset = 'utf-8'; ....................................; in mail.pl and in feedback.html I have <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> But I receive a un-readable message when visitor send unicode message to me Can anyone help me to resolve the problem Hey, i'm really new to HTML, but my dad's amazing at it and gradually helping learn. I'm trying to get this for my blog, a way to sign up for a newsletter i'm putting together. Here's the code i've put in but when I click submit, it just says "Method Not Allowed". Thanks. Here's what i've put in: Code: <form method=post action="/cgi-bin/example.cgi"> <input type="text" size="12" maxlength="30" /> <input type="Submit" value="Submit" action="mailto:jjrsportsfan@yahoo.com" /> </form> Thanks, Jjrsportsfan Hey guys I've been browsing for awhile now and I have finally joined up with a pretty basic simple question. I used a form generator to make this signup form for a group my friends putting together (long story lol). Basically its all generated and looks awesome. The issue is I have added this to the top <form id="form_113298" class="appnitro" method="post" action="mailto:EMAIL"> When i click submit however nothing happens... I dont have an email and it doesnt move forward or anything. Of course I never programmed another page after but heres some code from the bottom. <li class="buttons"> <input type="hidden" name="form_id" value="113298" /> <input id="saveForm" class="button_text" type="submit" name="submit" value="Submit" /> How can I make this form email me ? regards, Eddy I've got a form maiil in the cgi folder and it works great. Every question has to be answered on the form for it to be sent, if not, then it tells you what needs to be filled in, etc. Now, I've been getting SPAM for whatever BS and the form is not filled out. Just their email address and a message: <a href=http://you-online-casino-slot.blogspot.com/>casino slot</a> casino slot <a href=http://you-online-slot-machine.blogspot.com/>slot machine</a> slot machine I've tried it again, left one of the spaces blank and I can't send it. How in the world can someone bypass that? What are they using to SPAM my company's site with our form mail? Lastly, any ideas on how to combat that? I've bought & installed Mail Washer, it's fine, but just a bit of a hassle. Thanks in advance. I've created a form using FrontPage (2003) and modified Form Properties so it will send the form by an e-mail . I also enabled FrontPage extensions on the server side, however, whenever "Send" is pressed I receive "Page not found" message. Perhaps the Form Handler is not working right but I couldn't find any info related nor any related fields to change at the server part. I appreciate any help as this the final step to finalize my web site. Thanx in advance Hello every1 i need to create a contact us or an Email us form thing to put in my website i googled it and got all these generators but non of them work so peeps all i need is to make a form in HTML language to insert in the middle of my page that wud have 4 boxes and 2 buttons BOXES: 1 - Name : (Single Line Field) 2 - E-Mail: (Single Line Field, E-Mail Field) 3 - Subject: (Signle Line Field) 4 - Message: (Multi-Line Field) the e-mail field should check the email format i dont know i saw it in one of the generators but i didnt really know how to do it now the BUTTONS: 1 - Submit ( To send the mail to my e-mail ) 2 - Clear Fields ( to clear all the fields ) now i want when i click on submit to mail me the information using the subject field as the email subject and mail it to this email for example : email@domain.com and then redirect the browser to a page thats called /thanku.htm for example and if yall dont mind me askin another question how to creat a timer for a page? like for example i want to set a timer in this /thanku.htm page that it will count 5 seconds after opening it and then redirect again to to /index.htm for example thank u very much i really need this BYE I'm putting an html form on my site. When I send it, I get it, the fields are correctly filled out, but the message has an error. Can anybody help me out? Thank you in advance. HTML Code: <form action="http://lucaswynne.com/v-cgi/forms.cgi" enctype="application/x-www-form-urlencoded" method="post"> <table> <tr> <th align="right"> Name: </th> <td> <input type="text" name="Name" size="30" /> </td> </tr> <tr> <th align="right"> EMail: </th> <td> <input type="text" name="EMail" size="30" /> </td> </tr> <tr> <th align="right"> Subject: </th> <td> <select name="Subject" size="1"> <option value="Ask Lucas">Ask Lucas</option> <option value="Management and Booking">Management and Booking</option> <option value="Website Administrator">Website Administrator</option> <option value="Lucas Fan Mail">Lucas Fan Mail</option> </select> </td> </tr> <tr> <th align="right"> City, State/Province: </th> <td> <input type="text" name="City__State_Province" size="30" /> </td> </tr> <tr valign="top"> <th align="right"> Message: </th> <td> <textarea name="Message" rows="6" cols="30"></textarea> </td> </tr> <tr> <th></th> <td> <input type="submit" name="Submit_Form" value="Submit" /> </td> </tr> </table><input type="hidden" name="_vDeckformid" value="146" /> </form> I was given a template to use. For days I have poked around trying to find out how to code the form so people could type in their e-mail address and submit it to the company for whom I am building the site for. Here is what was given to me in the template. <table width="160" border="0" align="center" cellpadding="5" cellspacing="0"> <tr> <td colspan="2" class="bkt_color18335F">Stay in touch with Us</td> </tr> <tr> <td class="bkt_link" nowrap="nowrap">Email</td> <td style="padding:0 0 0 3px;"><input name="textfield" type="text" class="form_search" id="textfield" /></td> </tr> <tr> <td width="22%" class="bkt_link"> </td> <td><div align="right"><a href="join" class="style1 color18335F" style="font-size:9px;"><strong>> JOIN</strong></a></div></td> </tr> </table> What are the best routes here? php? asp? javascript? i'll take any method with direction. Hello I am working on a contact form an email one and it doesnt seem to be working can someone please take alook at it and let me know what i am doing wrong. Thank you. <td><form method="post" action="/frms/contactmail.pl"> <input type="hidden" name="SoupermailConf" value="/frms/contact.con"> <table width="100%" border="0" cellpadding="0" align="center" cellspacing="0"> <tr> <td><table width="100%" border="0" cellpadding="4" cellspacing="1"> <tr> <td align="Right"><b>Your Name: <span class="style1">*</span></b></td> <td width="70%"><input type="TEXT" name="Name" style="width: 90%;"> </td> </tr> <tr> <td align="Right"><b>E-mail Address: <span class="style1">*</span></b></td> <td><input type="TEXT" name="Name2" style="width: 90%;"></td> </tr> <tr> <td align="Right"><b>Company:</b></td> <td><input type="TEXT" name="Name3" style="width: 90%;"></td> </tr> <tr> <td align="Right"><b>How did you find us?</b></td> <td><input type="TEXT" name="Name4" style="width: 90%;"></td> </tr> <tr> <td align="right"><b> Questions: <span class="style1">* </span></b></td> <td> </td> </tr> <tr> <td colspan="2" align="center"><textarea name="Question" rows="8" style="width: 90%;" wrap="VIRTUAL"></textarea> </td> </tr> <tr> <td colspan="2" align="center"><input type="submit" name="Submit" value="Submit Form"> <br> </td> </tr> </table></td> </tr> </table> </form> <font face="Verdana, Arial" size="1" color="#000000"><b><font color="#FF0000">* Required</font></b></font></td> how to send e-mail from a form?... i want to make a form like this http://www.i4jagan.in/join%20us.asp and save it as pdf with numbering 1,2,3,4.... and email that to my email id (gmail)how to make it can any one help me plz urgent... Hi guys, i dont know to much about html, but i use dreamweaver and i have just built a new site etc and on one of the pages i have a form. and basically all i want is for the user to input data into the form and click send or w.e and the information then gets sent to my email account. i beleive this is quite simple. I got given a code to input and so i did and put in my details etc, but for some reason when the user presses send or the button it doesnt actually send and the page goes to a 404 error webpage when its meant to link to a thankyou page. Heres the code i already have: <form action="Thankyou Page" method="post" ID="Form1"> <input type="hidden" name="subject" value="Phase Wave Inquiry" ID="Hidden1"> <input type="hidden" name="recipient" value="phasewave@aetnet.co.uk" ID="Hidden2"> <input type="hidden" name="redirect" ID="Hidden3"> <p align="center"> <label></label> <span class="style3">If none of these options are right for you, just fill in this simple form and we will look into the details and get back to you as soon as we possibly can.</span> <p align="center" class="style4">Field with * must be filled in <table width="298" height="238" border="0" align="center"> <tr> <td><div align="center" class="style1">* Name : </div></td> <td width="161"><input name="textfield" type="text" maxlength="20" /></td> </tr> <tr> <td><div align="center" class="style1">* Email : </div></td> <td><input name="textfield2" type="text" maxlength="50" /></td> </tr> <tr> <td><div align="center" class="style1">Mobile :</div></td> <td><input name="textfield3" type="text" maxlength="12" /></td> </tr> <tr> <td><div align="center" class="style1">Home : </div></td> <td><input name="textfield4" type="text" maxlength="12" /></td> </tr> <tr> <td height="40"><div align="center" class="style1">*Brief description of event : </div></td> <td><textarea name="textarea"></textarea></td> </tr> <tr> <td height="40"><div align="center" class="style1">Any questions feel free to ask! : </div></td> <td><textarea name="textarea2"></textarea></td> </tr> </table> <p align="center"><br> <br clear="all"> <input type="submit" name="Submit" value="Submit"> <input type="reset" name="Reset" value="Clear Form"> </form> Any help would be appreciated, or any links to guides etcetc Thanksyou in advance I have an e-mail form on my site and when someone clicks the submit button I get sent two e-mails. Did I do something wrong or miss something? Here is the code I am using. Code: <form name="form1" method="post" action="http://wrathchild.edit-strike.nl/securemail.php"> <input type=hidden name="subject" value="Request from site"> <input type=hidden name="required" value="fullname,email"> <input type=hidden name="redirect" value="http://wrathchild.edit-strike.nl/thankyou.html"> Name:<br><input type=text name="fullname"> <P> E-mail:<br><input type=text name="email"> <P> What kind of graphic would you like ?<br> <select> <OPTION VALUE="signature">Signature <OPTION VALUE="spray">CS:S Spray/Logo <OPTION VALUE="Web Banner">Web Banner <OPTION VALUE="other">Other </select> <p> Details:<br><textarea name="details" rows="10" cols="50"> </textarea> <P> <P> <P> <input type="submit" name="Submit" value="Submit"><br> </form> hi everyone this is my first post here and hope i will get solution of my problem i have designed an form and want when user click on submit button i can recieve that data into my email. here is the code <FORM METHOD="POST" ACTION="mailto:mandeep@vbams.com" ENCTYPE="text/plain"> <INPUT TYPE="text" NAME="username"> : name <BR> <INPUT TYPE="text" NAME="email"> : email <BR> comments <BR> <TEXTAREA NAME="COMMENTS" ROWS="10" WRAP="hard"> </TEXTAREA> <INPUT NAME="NEXT_URL" TYPE="hidden" VALUE="http://www.vbams.com/index.html"> <BR> <INPUT TYPE="submit" VALUE="Send"> <INPUT TYPE="reset" VALUE="Clear"> </FORM> this is not working can any one help me how to modify this code so it work properly Thanks Mandeep I would like to add extra fields to my contact us form on osCommerce. The fields I would like are 'Category' drop down list which would be linked to a selection of email addresses, so that when a customer selects 'sales' or 'cust service' the email would go to a seperate email address each time. This would make it much easier to do admin work. Is it possible to change this without needing to install a ticketing system? How do I make a blank text field where people can type in their e-mail and press submit and then that gets emailed to me? I have this code: <FORM method="post" name="newsletter" action="http://formmail.dreamhost.com/cgi-bin/formmail.cgi" enctype="multipart/form-data"> <INPUT type=text name="email" value="Type Here" size=15 AUTOCOMPLETE=ON> <INPUT TYPE="image" src="http://www.averytrips.com/submit.jpg" alt="Submit"> </FORM> It's supposed to be e-mailed to newsletter@averytickets.com. I put in the CGI action that dreamhost gave to me, but I don't know how to point it towards newsletter@averytickets.com. Any help is much appreciated, thanks! I have very limited HTML training, but I'm trying to find out how to write some HTML code that will allow a website or blog visitor to: 1. Enter their email address in a form field 2. Select a choice from a drop down menu Once they've done that and hit a submit button, I would like to have the info emailed to me. I know this is possible, but is it possible to have this text on a blog like Blogger, or do I have to have my own webpage with specific settings or formats? Thank you so much in advance. Hi, and sorry for being yet another individual with the same question. I am a total rookie as far as code, and someone else built this form for me. I know enough to know that given that I do not see an email addy anywhere in the code, that is is not surprising that I am not receiving it. This is a form built into a wordpress site. I assume something is missing at the very beginning where it says "mailsend.php" If anyone could tell me what code I need to add, I would GREATLY appreciate it. Thank you in advance! <form action="mailsend.php" method="post" name="contactform" onsubmit="return fullcheck()"> <table width="196" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td colspan="2" class="formtext">If you would like to schedule a free personal injury consultation, contact the Scott McPherson Law Firm in New Port Richey, Florida today.</td> </tr> <tr> <td colspan="2"><img src="images/sp.gif" alt="" width="1" height="16" /></td> </tr> <tr> <td width="67" class="formtext">Name:</td> <td width="129"><input name="name" type="text" class="form_border" style="width:129px;" /></td> </tr> <tr> <td colspan="2"><img src="images/sp.gif" alt="" width="1" height="6" /></td> </tr> <tr> <td width="67" class="formtext">Email:</td> <td width="129"><input name="email" type="text" class="form_border" style="width:129px;" /></td> </tr> <tr> <td colspan="2"><img src="images/sp.gif" alt="" width="1" height="6" /></td> </tr> <tr> <td width="67" class="formtext">Phone:</td> <td width="129"><input name="phone" type="text" class="form_border" style="width:129px;" /></td> </tr> <tr> <td colspan="2"><img src="images/sp.gif" alt="" width="1" height="6" /></td> </tr> <tr> <td width="67" class="formtext">Address:</td> <td width="129"><input name="address" type="text" class="form_border" style="width:129px;" /></td> </tr> <tr> <td colspan="2"><img src="images/sp.gif" alt="" width="1" height="6" /></td> </tr> <tr> <td width="67" class="formtext">City:</td> <td width="129"><input name="city" type="text" class="form_border" style="width:129px;" /></td> </tr> <tr> <td colspan="2"><img src="images/sp.gif" alt="" width="1" height="6" /></td> </tr> <tr> <td colspan="2" valign="top"><table width="196" border="0" cellspacing="0" cellpadding="0" align="left"> <tr> <td width="65" class="formtext">State:</td> <td width="56" align="left"><input name="state" type="text" class="form_border" style="width:50px;" /></td> <td width="24" class="formtext">Zip:</td> <td width="51"><input name="zip" type="text" class="form_border" style="width:47px;" /></td> </tr> </table></td> </tr> <tr> <td colspan="2"><img src="images/sp.gif" alt="" width="1" height="6" /></td> </tr> <tr> <td width="67" valign="top" class="formtext">Comments:</td> <td width="129"><textarea name="comments" class="form_border" style="width:129px; height:86px; overflow:hidden;" rows="" cols=""></textarea></td> </tr> <tr> <td colspan="2" class="formtext">Please insert what you see in the image: </td> </tr> <tr> <td><img src="captchaImage.php" alt="captcha image"/></td> <td><input type="text" id="captcha_input" name="captcha_input" class="form_border" style="width:129px;" /></td> </tr> <tr> <td colspan="2"><input type="hidden" value="<?=basename($_SERVER['PHP_SELF'])?>" name="pagename" /><img src="images/sp.gif" alt="" width="1" height="13" /></td> </tr> <tr> <td colspan="2" align="right"><input type="hidden" value="1" name="enter" /><input type="image" name="submit" src="images/submit.jpg" /></td> </tr> </table></form> Can you recommend a good, basic form mail script? |