HTML - Mail Form Guidance
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> Similar TutorialsHeyy 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 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 how to send e-mail from a form?... 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 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'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> 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 } ?> 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 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 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 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... 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? 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> 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! 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 have a few questions actually... first off, I am an aspiring html programmer. What I want to know is with the following code, how can I utilize this information that is recieved from the user?
Code: <html> <body> <div id="shipForm"> <div id="shipFormContainer"> <div id="shipFormHeader1"> </div> <div id="shipFormHeader2"> </div> <div id="shipFormContent" name="shipFormContent"> <form id="theForm" name="theForm" action="a.htm" method="post" > <input type="hidden" name="index" id="index" value="1"/> <input type="hidden" name="email" id="email" value=""/> <label for=""></label><div class="clear"></div> <label for="title">Title: </label> <select id="title" name="title" class="formElement"> <option value="">Select</option> <option value="Mr" >Mr.</option> <option value="Ms" >Ms.</option> <option value="Mrs" >Mrs.</option> </select> <div class="clear"></div> <label for="firstname">First Name: </label> <input class="formElement" type="text" name="firstname" id="firstname" value="" /><br /> <div class="clear"></div> <label for="lastname">Last Name: </label> <input class="formElement" type="text" name="lastname" id="lastname" value="" /><br /> <div class="clear"></div> <label for="address">Address: </label> <input class="formElement" type="text" name="address" id="address" value="" /><br /> <div class="clear"></div> <label for="city">City: </label> <input class="formElement" type="text" name="city" id="city" value="" /><br /> <div class="clear"></div> <label for="state">State: </label> <select name="state" id="state" class="formElement"> <option value="">Select</option> <option value="AK" >AK</option> <option value="AL" >AL</option> <option value="AR" >AR</option> <option value="AZ" >AZ</option> <option value="CA" >CA</option> <option value="CO" >CO</option> <option value="CT" >CT</option> <option value="DC" >DC</option> <option value="DE" >DE</option> <option value="FL" >FL</option> <option value="GA" >GA</option> <option value="HI" >HI</option> <option value="IA" >IA</option> <option value="ID" >ID</option> <option value="IL" >IL</option> <option value="IN" >IN</option> <option value="KS" >KS</option> <option value="KY" >KY</option> <option value="LA" >LA</option> <option value="MA" >MA</option> <option value="ME" >ME</option> <option value="MD" >MD</option> <option value="MI" >MI</option> <option value="MO" >MO</option> <option value="MN" >MN</option> <option value="MS" >MS</option> <option value="MT" >MT</option> <option value="NC" >NC</option> <option value="ND" >ND</option> <option value="NE" >NE</option> <option value="NH" >NH</option> <option value="NJ" >NJ</option> <option value="NM" >NM</option> <option value="NV" >NV</option> <option value="NY" >NY</option> <option value="OH" >OH</option> <option value="OK" >OK</option> <option value="OR" >OR</option> <option value="PA" >PA</option> <option value="RI" >RI</option> <option value="SC" >SC</option> <option value="SD" >SD</option> <option value="TN" >TN</option> <option value="TX" >TX</option> <option value="UT" >UT</option> <option value="VA" >VA</option> <option value="VT" >VT</option> <option value="WA" >WA</option> <option value="WI" >WI</option> <option value="WV" >WV</option> <option value="WY" >WY</option> </select> <div class="clear"></div> <label for="zip">Zip: </label> <input class="formElement" maxlength="5" type="text" name="zip" id="zip" value="" /><br /> <div class="clear"></div> <label for="phone1">Phone: </label> <input class="inputShort" maxlength="3" type="text" id="phone1" name="phone1" value="" /> <input class="inputShort" maxlength="3" type="text" id="phone2" name="phone2" value="" /> <input class="inputShort" maxlength="4" type="text" id="phone3" name="phone3" value="" /> <div class="clear"></div> <input class="formElement" type="submit" name="shipSubmitBtn" id="shipSubmitBtn" value="" /> </form> </div> <div class="clear"></div> <div id="shipFormFooter"> </div> <div class="clear"></div> </div> </div> </body> </html> I basically just want, at the moment, to be able to use a simple javascript function on the page "a.html" using document.write("Your first name is:" +pointertofirstname) Secondly, how do I actually go about setting up an http/ftp server? I know how to set up an ftp server, but can I use a computer containing windows xp home to host a server? windows xp pro? is there just a program I need? LASTLY, how would I add this information to a database(the info recieved from the original html code) so that when they log in to some sort of account that information is displayed on the account page. Sorry for any really dumb questions, Thanks I'm trying desperately to get my website up and running through 3 programs. A. Photoshop CS2 B. Dreamweaver trial account - lasts 29 days C. FileZilla I'm at the point of complete breakdown and punching holes in my wall. I'm sure you can imagine that if someone whose whole range of expertise relies solely in photoshops paint brush tool, that if he just decided to build a website one day, that giant brick wall of nonsensical code and symbols is going to be far more than intimidating. I've made a strong attempt to do this by myself and with the help of tutorials, but I tell you it hasn't helped even a little bit. I need someone who is comfortable and knowledgable with this area who can guide me and walk me through the steps and what I should know and do to get my design and ideas up on my domain. I have the domain name from go-daddy as well I am hosted with them. My website is www.fuzzleart.com and as you can see, its quite blank. I know you don't know who I am and my needs don't affect you either way, but please put yourself in my shoes and help me out as others may have helped you when you first started out. I would prefer it if we could have immediate and direct communication through Instant messengers as that would really ease up the process. If your willing to help, please IM at; AIM: SergeantFuzz MSN: Fuzzlemail@gmail.com or send me a PM here and we can arrange a way to communicate. I would seriously appreciate any help you can give me. Can you recommend a good, basic form mail script? Hello everyone, I'm a Computer Science student mainly trained in mathematics and programming languages like C/C++ and Java; I wanted to branch out more into web design and decided to start with learning HTML. So far, I've signed up for free hosting with Xtreemhost to give myself a sandbox to play with and familiarized myself with Classic FTP. I'm teaching myself using Sam's Teach Yourself HTML and CSS Eighth Edition. My main frustration comes from my understanding that HTML 5 is the newest standard, but the book I use is using XHTML 1.1 as the standard for teaching. Will this really make much of a difference? Is there anywhere/anything I'm better off learning HTML from if I'm just going to be learning a bunch of deprecated stuff from XHTML 1.1? It is also my understanding (correct me if I'm wrong) that even though the standard has been issued for HTML 5, browsers are generally slow to add in support for it. So does it really matter at this point in time what standard I am using (HTML 4, XHTML 1.1, HTML 5, whatever) to learn? Would it be correct to say that I can use XHTML 1.1 if I really want to, but if I want to take advantage of all the pretty features of HTML 5, I need to abandon some of my apparently deprecated XHTML 1.1 ways first? On the other hand, if not all browsers are at this point in time supporting the HTML 5 features, why create a website that uses it if it's not going to work consistently across all browsers? As you can see, I'm a little confused =/ I'd appreciate if someone could shed some light on this for me and give me some guidance on... well... where to start learning, really; my Googling gives me conflicting information. My plan was to learn HTML, CSS, and Javascript, then learn how TCP/IP works, pick up some proficiency in Photoshop and Dreamweaver/Frontpage, then branch out into server-side technologies like PHP, ASP, etc... I already have some knowledge of SQL from my database design and programming class. I did try learning from w3schools.com, but I have a sneaking suspicion that the material isn't quite comprehensive, which bugs me. |