HTML - E-mail Form Code Problem
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! Similar Tutorialshi, problem with my code. it does not post to the save.php, the only thing that gets posted to the php file is a ":" can someone help Code: <form method="POST" action="save.php"> <div align="center"> Username: <input type="text" name="username" size="15" /><br /> <div align="center"> Gender: <input type="gender" name="gender" size="15" /><br /> <div align="center"> E-mail: <input type="email" name="email" size="15" /><br /> <div align="center"> <p><input type="submit" value="Sign Up" /></p> </div> </form> Help please I have a form and am entering in some html code into it, but it's not posting. I guess it's a parsing error. In PHP I would addslashes or something like that, but i don't know what to do for a form... I'm sure this is really simple and i've got it wrong. I have been trying different things and searching the web for hours now... Thank you, Jo Hey, I am new to this forum but i can't find an answer to this question. I have recently created an online tackle shop. And in the "contact us" part I have my e-mail and the owners e-mail. But I want to have it so you can click on it from there and open up outlook or whatever the primary e-mail they have to e-mail us. But right now it just has the address so you would have to copy and paste it can anyone help me????? I want to make a e-mail subscribe box for my website. Could someone put together a simple HTML/PHP code that once the person enters there email address it will just add it to a text file? Then I can use an e-mail manager to extract the email adresses. Hello. Can anyone tell me why this appears dis-functionally in yahoo mail and not hotmail? Here is the code: <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="language" content="english"> <meta http-equiv="Content-Style-Type" content="text/css"> <title>signature template</title> <style type="text/css"> #container { width:388px; padding:18px 0; border-top:1px solid #00f; border-bottom:1px solid #d5d500; font-family:'arial narrow',sans-serif; font-size:13px; color:#808080; overflow:hidden; } #container span { width:194px; } #ds { float:left; margin-bottom:5px; font-size:18px; font-weight:600; } #nc { float:right; margin:5px 0; font-weight:600; } #pc { float:left; clear:both; margin-bottom:5px; font-weight:600; font-style: oblique; } #lb { float:right; margin-bottom:5px; font-size:11px; font-style: oblique; } #ws { float:left; clear:both; font-size:11px; } #ws a { color:#808080; } #tn { position:relative; float:right; font-size:11px; } #bo img { width:20px; height:20px; } </style> </head> <body> <div id="container"> <span id="ds">Debra Scott</span> <span id="nc">Newmarket Chamber of Commerce</span> <span id="pc">President & CEO</span> <span id="lb">"Leading Businesses. Leading Communities"</span> <span id="ws"><a href="http://www.newmarketchamber.ca"> Newmarket Chamber Website </a></span> <span id="tn"> 905 898-5900 ex. 223 </span> <span id="bo"> <a href="http://www.facebook.com/posted.php?id=247080242075&share_id=104217559616934&comments=1#!/pages/Newmarket-Chamber-of-Commerce/144627125556344?ref=ts"> <img style="margin: 5px" src="http://newmarketONCOC.weblinkconnect.com/external/WCPages/WCWebContent/WebContentPage.aspx?contentID=359"> </a></span> <span id="bo"> <a href="http://twitter.com/NMKTChamber"> <img style="margin: 5px" src="http://newmarketoncoc.weblinkconnect.com/external/wcpages/wcwebcontent/webcontentpage.aspx?contentid=361"> </a></span> <span id="bo"> <a href="http://ca.linkedin.com/pub/newmarket-chamber-of-commerce/18/54/231"> <img style="margin: 5px" src="http://newmarketoncoc.weblinkconnect.com/external/wcpages/wcwebcontent/webcontentpage.aspx?contentid=360"> </a></span> </div><!-- end #container --> Hi guys, Could you please help me in giving the code that takes data from the fields in HTML form and when submit button is clicked the mail has to go to the intended user through Microsoft office outlook. Please help me... its very urgent Thanks & Regards Karteek Challa 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 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 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 Hello 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 } ?> 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'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 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... 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 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.. 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. how to send e-mail from a form?... 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> 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> |