HTML - Need Help With Email Script (built A Html Form- Need Form Info Emailed)
script completed, thx
Similar TutorialsBelow is the current code I have. I havent coded in html for 6 years. Can someone either add or show me how to add a submit button that emails the info on that page to my email. I have been asked by a friend to build him a website, and right now I am a total faliure. I also need a reset button on the site that clears the info in the boxes. If someone could either just do it for me, or show me how i'd really apreciate it. Thanks everyone. Mike <html> <head> <title>Player Signup</title> <script> window.windowname= "Add Form Page" orpage= window.windowname function startForm(form) { nname= form.fname.value; nname= ((nname== "") ? nname= "" : nname= " NAME=" + nname); ntarget= form.ftarget.value; ntarget= ((ntarget== "") ? ntarget= "" : ntarget= " TARGET=" + ntarget); nenctype= form.fenctype.value; nenctype= ((nenctype== "") ? nenctype= "" : nenctype= " ENCTYPE=" + nenctype); whtml= form.HTML.value; mymethods= form.chosenmethod.selectedIndex; mymethodsarray= new Array(); mymethodsarray[0] = ""; mymethodsarray[1] = "GET"; mymethodsarray[2] = "POST"; mymethod= mymethodsarray[mymethods]; mymethod= ((mymethod== "") ? mymethod= "" : mymethod= " METHOD=" + mymethod); myaction= form.chosenaction.value; myaction= ((myaction== "") ? myaction= "" : myaction= " METHOD=\"" + myaction + "\""); nhtml= whtml + "\r <FORM" + nname + myaction + mymethod + ntarget + nenctype + ">"; form.HTML.value = nhtml; } function endForm(form) { whtml= form.HTML.value; nhtml= whtml + "\r </FORM>"; form.HTML.value = nhtml; } function newItem(txtarea, form) { addbre= (form.addbr.checked== true) ? addbre=form.addbr.value : addbre= ""; crows= form.chooserows.value; ccols= form.choosecols.value; crows= ((crows== "") ? crows= "" : crows= " ROWS=" + crows); ccols= ((ccols== "") ? ccols= "" : ccols= " COLS=" + ccols); ntoit= form.choosevalue.value; cname= form.choosename.value; cname= ((cname== "") ? cname= "" : cname= " NAME=\"" + cname + "\""); ctype= form.choosetype.selectedIndex; ctypearray= new Array(); ctypearray[0] = "text"; ctypearray[1] = "radio"; ctypearray[2] = "checkbox"; ctypearray[3] = "button"; ctypearray[4] = "hidden"; ctypearray[5] = "reset"; ctypearray[6] = "submit"; ctypearray[7] = "password"; ntoit= ((0 < ctype) ? ntoit= ntoit : ntoit= ""); ntoit= ((ctype > 2) ? ntoit= "" : ntoit= ntoit); check= form.checks.value checktf= form.checks.checked check= ((ctype== 2) | (ctype== 1) ? check= check : check= "") check= (checktf== true) ? check= check : check= ""; cvalue= form.choosevalue.value; cvalue= ((cvalue== "") ? cvalue= "" : cvalue= " VALUE=\"" + cvalue + "\""); csize= form.choosesize.value; csize= ((ctype== 7) | (ctype== 0) ? csize= csize : csize= "") csize= ((csize== "") ? csize= "" : csize= " SIZE=" + csize); clength= form.chooselength.value; clength= ((clength== "") ? clength= "" : clength= " MAXLENGTH=" + clength); clength= ((ctype > 0) ? clength="" : clength= clength); whtml= form.HTML.value; ctype= " TYPE=\"" + ctypearray[ctype] + "\""; nhtml= whtml + "\r <INPUT" + check + cname + ctype + cvalue + csize + clength + ">" + ntoit + addbre; txtdsply= "Default Text" nwhtml= whtml + "\r <TEXTAREA" + cname + crows + ccols + ">" + txtdsply + "</TEXTAREA>" + addbre; nhtml= ((txtarea== 8) ? nhtml= nwhtml : nhtml= nhtml); form.HTML.value = nhtml; } function genNewPage(form) { header= "<HTML>\r<HEAD>\r<TITLE>Generated Form</TITLE>\r</HEAD>\r\r<BODY BGCOLOR=\"white\">"; newhtml= form.HTML.value; footer= "</BODY>\r</HTML>"; newpage= header + "\r\r" + newhtml + "\r\r" + footer; preWin= open("", "Preview", "width=400,height=400,status=no,toolbar=no,menubar=no"); preWin.document.open(); preWin.document.write(newpage); preWin.document.close(); } </script> <base target="leftframe"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css"> <!-- body { background-image: url(backgroundice.jpg); } --> </style></head> <body BGCOLOR="#ffffff" link="#CC0033" vlink="#333399" alink="#FF0000" <!--content start--> <p align="center"><a href="home.html" ><img src="home.jpg" width="182" height="56" /></a><a href="dates.html"><img src="dates.jpg" width="182" height="56" /></a><a href="registration.html"><img src="register.jpg" width="182" height="56" /></a><a href="about.html"><img src="aboutus.jpg" width="182" height="56" /></a><a href="yourprogram.html"/a><img src="camps.jpg" width="182" height="56" /></a></p> <table WIDTH="96%" BORDER="0" CELLSPACING="5" CELLPADDING="5"> <tr> <td WIDTH="100%"><form NAME="addform"> <p>Player Information</p> <p>Name: <input NAME="pname" TYPE="text" size="20"><br> Age: <input TYPE="text" NAME="age" size="20"><br> Last Team: <input TYPE="text" NAME="lteam" size="20"> <br> Level Played At (A1,A2,A3,C): <input TYPE="text" NAME="level" size="20"> <br> Stats: <input type = "text" NAME="stats" size="20"><br> Email: <input TYPE="text" NAME="email" size="20"> <BR> Home Phone: <input TYPE="text" NAME="homephone" size="20"> <BR> Cell Phone: <input TYPE="text" NAME="cellphone" size="20"> <BR> City of residence: <input TYPE="text" NAME="city" size="20"> <BR> Home orginization: <input TYPE="text" NAME="orginization" size="20"> <BR> What are your goals for the Upcoming Hockey Season? <p> <textarea NAME="sgoals" ROWS="10" COLS="45"></textarea> <p>Who Refered you to us? <input TYPE="text" NAME="referl" size="20"> <p>What are you hockey aspirations for the future? <p> <textarea NAME="hgoals" ROWS="10" COLS="45"></textarea> <p>How Will you be paying? (Money order, Check preferred, Paypal also Avalible. Do NOT mail an envelope full of cash!)</p> <p> <input TYPE="text" NAME="paytype" size="20"> </p> <p> </p> <p> </form> </td> </tr> </table> <!--content stop--> </body> </html> Hi, I want to put in a form to get queries from the user, like so: Name: Email: Comments: 'Send' button and that it will send the information to my email address which is gmail? Thanks Hi i am looking for a bit of help creating an email form. I would like it to contain a table with 4 columns per row - the middle two cells would contain a drop down menu each. the form would have a send button which would send the results in an easy to read format to a pre-defined address. ideally it would work on hotmail, yahoo etc. i would be really grateful for any hints and tips anyone could give many thanks I have created a simple HTML email form on my linux server. Seems simple enough, yet every time I test it, Outlook tries to open and my form is never emailed. Does anyone know how to correct this? Here is my code: <CENTER> <FORM METHOD=POST ACTION="mailto:test@yahoo.com" ENCTYPE="text/plain"> Subject:<INPUT TYPE="text" NAME="username"> <BR> <INPUT NAME="email" TYPE="hidden" VALUE="<?php echo $_SESSION['email']; ?>"> <BR> Question <BR> <TEXTAREA NAME="COMMENTS" ROWS="10" WRAP="hard"> </TEXTAREA> <INPUT NAME="redirect" TYPE="hidden" VALUE="gm.php"> <INPUT NAME="NEXT_URL" TYPE="hidden" VALUE="gm.php"> <BR> <INPUT TYPE="submit" VALUE="Send"> </FORM> </CENTER> Also, if anyon knows how to create this form in php, that would work as well. Hello, I am trying to to write HTML code that will let people fill out a form, but I need it sent to an email address (tcutler@lighthouseandmeyu.org) This is what I have: HTML Code: Please Provide Your Input!: <form action="tcutler@lighthouseandmeyu.org" METHOD=POST> <P><TEXTAREA ROWS=10 COLS=50 NAME=Comments></TEXTAREA></P> <P><INPUT TYPE=SUBMIT VALUE=Send></P> </FORM> Hi I'm sending an HTML file as an Email attachment. When I send it the <meta> tag contains "charset=iso-8859-8" - Hebrew(ISO-Visual) but when the recipiant opens it the charset has changed to "charset=iso-8859-8-i" - Hebrew(ISO-Logical) which causes the text to appear left-to-right instead of right-to-left as I sent it. What causes this behaviour and how can I correct it? Thanks for any help David Paddling upstream searching for the source I have this code that I am using for a contact form on my website. What do I need to add for it to send the data in the fields to my email address Code: <form name='Contact Time For You' action='sent.htm' method='POST' enctype='multipart/form-data' onsubmit='return verifyMe();'> <table class='table_form_1' id='table_form_1' cellspacing='0' width="271" align="right"> <tr> <td class='ftbl_row_1a' width="241" align="left" > <font face="Arial" size="2"><LABEL for='Full_Name' ACCESSKEY='none' ><b style='color:red'>*</b>Your Name </label></font> <font face="Arial"> <input type='text' name='Full_Name' id='Full_Name' size='34' value=''></font></td> </tr> <tr> <td class='ftbl_row_2a' width="241" align="left" > <p> <font face="Arial" size="2"><LABEL for='Email' ACCESSKEY='E' ><b style='color:red'>*</b><u>E</u>mail Address </label></font> <font face="Arial"> <input type='text' name='Email' id='Email' size='34' value=''></font></td> </tr> <tr> <td class='ftbl_row_1a' width="241" align="left" > <p style="margin-top: 0; margin-bottom: 0"> <font face="Arial" size="2"><LABEL for='Telephone' ACCESSKEY='T' ><b style='color:red'>*</b><u>T</u>elephone </label></font> </p> <p style="margin-top: 0; margin-bottom: 0"><font face="Arial"><input type='text' name='Telephone' id='Telephone' size='15' value=''></font></p> <p style="margin-top: 0; margin-bottom: 0"> </td> </tr> <tr> <td class='ftbl_row_2a' width="241" align="left" > <font face="Arial" size="2"><LABEL for='Enquiry_Text' ACCESSKEY='none' ><b style='color:red'>*</b>Enquiry</label></font><font face="Arial"><textarea name='Enquiry_Text' id='Enquiry_Text' cols='28' rows='6' value=''></textarea></font></td> </tr> <tr> <td class='ftbl_row_1a' width="241" align="left" > <p> <font face="Arial" size="2"><LABEL for='Code' ACCESSKEY='none' ><b style='color:red'>*</b>Offer Code </label></font> <font face="Arial"> <input type='text' name='Code' id='Code' size='34' value=''></font></td> </tr> <tr> <td align='center' width="249"> <p style="margin-top: 1; margin-bottom: 1"> </p> <p style="margin-top: 1; margin-bottom: 1"><font color="#FFFFFF"> <input type='submit' name='submit' value='Send' style="float: right; color: #FFFFFF; font-family: arial; font-weight: bold; background-color: #000080"></font> </td> </tr> </table> </form> Thank you in advance, Dan Just wondering if someone can help me out with this conundrum that I am having. I work for a small publishing company that has an e-newsletter. well actually it started out as a mailed newsletter and then fax now email as well and the only problem is that I find everyone is forwarding this newsletter. Is there some sort of code that can be added to the script to either track when it has been forwarded or stop it from being forwarded or copied and pasted? or anything? I have done some searching and have come up with the colective answer "no" but feel like there has to be something I/we can do! Any help would be greatly, I mean greatly appreciated. I hope this was the right thread to post on if not I apologise and can someone point me in the right direction. It submits in every other browser BUT IE... I just finished this website and it works everywhere except IE... I don't get it!!! I'm using image inputs to submit the form. Is that bad? It obviously sends me to the next page, but why isn't the data going through? the form exists on this webpage http://awesomebattle.com/compare.php it's the frame with the two random characters in it... here is the code. Code: <form method="post" name="vs" id="vs" action="vs.php" > <table width="100%"> <tr> <td align="center" valign="top" width="30%" bgcolor="#ff9900" > <font size="5"><a href="http://www.google.com/search?q=Captain America" alt="Detailed Info" title="Detailed Info" target="_blank">Captain America</a><br><input type="image" id="w" name="w" VALUE="l" border="0" width="300" height="300" src="pic/1278364692captain america.jpg"></font></td> <td valign="top" width="40%" align="center"><img width="150" border="0" src="pic/1277747612fight.png"><br> <input type="image" id="w" name="w" VALUE="d" border="0" src="draw.png" > <br> <input type="image" id="w" name="w" VALUE="" border="0" src="idk.png" > <table width="300" bgcolor="ff9900" ><tr><td colspan="2" align=center ><font size=1>1 vote</font></td></tr></table> </td> <td align="center" valign="top" width="30%" bgcolor="#ff9900" > <font size="5"><a href="http://www.google.com/search?q=Polaris" alt="Detailed Info" title="Detailed Info" target="_blank">Polaris</a>, <a href="http://www.google.com/search?q=Killer Bee" alt="Detailed Info" title="Detailed Info" target="_blank">Killer Bee</a>, <a href="http://www.google.com/search?q=Haku" alt="Detailed Info" title="Detailed Info" target="_blank">Haku</a><br><input type="image" id="w" name="w" VALUE="r" border="0" width="150" height="150" src="pic/1278365600Polaris.jpg"><br><input type="image" id="w" name="w" VALUE="r" border="0" width="150" height="150" src="pic/1277849407killerbee.jpg"><input type="image" id="w" name="w" VALUE="r" border="0" width="150" height="150" src="pic/1278365133haku.jpg"></font></td> </tr> </table> <br> <a href="javascript:toggle_visibility()" ><font style="BACKGROUND-COLOR: #ff9900" size=2 >Leave some commentary for others to see!</font></a> <div id="ads" ></div> <div id="notes" style="display:none;" align=center> <table width="400" bgcolor="#ff9900"><tr><td align=center> Name <input id="name" type="text" name="name" VALUE="" maxlength="30" size=15 alt="Tell us your name" title="Tell us your name" ><br> <font size=2>Commentary</font> <textarea name="comments" cols="40" rows="5"> </textarea><br><font size=1>When you pick a winner the comment will be submitted.</font> </td></tr></table> </div> <input type="hidden" id="compare" name="compare" VALUE="0" /> <input type="hidden" id="rights" name="rights" VALUE="3" /> <input type="hidden" id="lefts" name="lefts" VALUE="1" /> </form> I'm thinking it's a I hate I.E. I really do. So many people use IE so I have to make this work with my site. The Daily Mail is doing something that has me puzzled. When I go to this url in firefox http://www.dailymail.co.uk/sciencete...shut-down.html (or any url @ the Daily Mail actually) if I try and copy a paragraph the page it adds a link and some text to the bottom of what ever I copied. Like this: Computers in companies, hospitals and schools around the world slowed down or froze after an antivirus program identified a normal Windows file as a threat Read mo http://www.dailymail.co.uk/sciencete...#ixzz0lq9Ljcbw That last line wasn't in the area I had highlighted to copy. How are they doing that????? I used a tutorial on another website to create a Email Form. But the form doesn't work. Can someone help me work out whats wrong. I also want to add a confirmation page. HTML Code: <form action="mailto:exterminate-tcg@hotmail.co.uk?subject=Join Form" method="post" enctype="text/plain"> <table><tr><td> Name: <INPUT NAME="Name" TYPE="text" SIZE=15 MAXLENGTH=50><BR> Email: <INPUT NAME="Email" TYPE="text" SIZE=20 MAXLENGTH=90><BR> Website URL: <INPUT NAME="Website URL" TYPE="text" VALUE="http://" MAXLENGTH=4555><BR> Birthday: <INPUT NAME="Birthday" TYPE="text" VALUE="dd/mm" SIZE=6 MAXLENGTH=5><BR> Set Colecting: <INPUT NAME="Set Colecting" TYPE="text" SIZE=15 MAXLENGTH=11111><BR> Referred By (Optional): <INPUT NAME="Referred By (Optional)" TYPE="text" SIZE=15 MAXLENGTH=30><BR> Comments?<BR><TEXTAREA NAME="Comments?" ROWS=4 COLS=20></TEXTAREA><BR> </td></tr> <tr><td align=center> <INPUT TYPE="submit" value="submit" style="color: #000000 ; background-color: #FFFAFA "> </td></tr></table> </FORM> Trying to create an order form for a web page that will send a mail to an order inbox. Have 2 problems: - The email appears and the user has to click "send". I do not want that. I want it to be sendt automatically, and the user should only get an output of "Order sent" How can I do this? - Also, the email is very cryptic. Is there any way I can edit the message body to be more easely readable? Appreciate any suggestions. Hey guys, I've made a form for my website. It should send the information in my form directly to the emailaddress I added, but it doesn't. I would also like to get some sort of confirmation so that when you have filled in the form and sended it, you get some sort of confirmation that the form was filled in correctly and was send to my emailaddress. Here is the code: HTML Code: <h1>Join us:</h1> <form action="MAILTO:joinus@mysitename.nl" method="post" enctype="multipart/form-data" name="Joinus"> Nickname:<br /> <input type="text" name="name" value="your nickname" /><br /><br /> Age:<br /> <input type="text" name="age" value="your age" /><br /><br /> E-mail:<br /> <input type="text" name="mail" value="your email" /><br /><br /> Name:<br /> <input type="text" name="name" value="your name" /><br /><br /> Main skill:<br /> <input type="text" name="skill" value="your main skill" size="50" /><br /> Country:<br /> <input type="text" name="country" value="your country" /><br /><br /> CoD series: <input type="checkbox" name="name" value="CoD United Offensive" /> CoD United Offensive<br /> <input type="checkbox" name="name" value="CoD Modern Warfare" /> CoD Modern Warfare<br /> <input type="checkbox" name="name" value="CoD Modern Warfare 2" /> CoD Modern Warfare 2<br /> <input type="checkbox" name="name" value="CoD Black Ops" /> CoD Black Ops<br /> <br /><br /> <input type="submit" value="Send"> <input type="reset" value="Reset"> </form> Hi doesn anyone know where to find any javascript code to send an email form through a website. I've found code that lets you make a form that sends through your email client (i.e outlook), but I want it to all be done through the website. thanks Hi, I would like to have a html form that automatically emails the input to my email address. It will include a drop down box and text fields. Could anyone help me with this? Thanks. Hello all, I am building a website for a church and I am having trouble getting the contact form working properly. Below is the form code I have. I am also new to ipage, so if anyone is familiar with any server setup, it would be greatly apreciated! <form method= "post" action="http://www.ipage.com/scripts/formemail.bml"> <input type="hidden" name="my_email" value="mailto:info@blanchardnaz.org"> Name<br> <input type="text" name="Name" size="25"><br> Email<br> <input type="text" name="Email" size="25"><br> Phone Number<br> <input type="text" name="Phone Number" size="25"><br> <br> <textarea rows="15" cols="50"></textarea> <br> <input type="submit" name="submit" value="Send" > <input type="reset" name="reset" value="Reset" > <input type="hidden" name="thankyou_url" value="http://www.blanchardnaz.org/index.html"> </form> Okay, I shoould probably start off by saying I am a complete and utter noob when it comes to HTML. I can basically do text, links, images, basic forms, and that's it. So I'm not sure if the following question is legitimately an issue or not, or if I'm just being stupid. I'm working on a website for a small organization that I'm head of, and want to make a "contact us" page. I would like to make a form that can be filled out to send an email to, but what I'm doing isn't working - the email won't send. Here's what I'm trying to use: Code: <form action="mailto:someone@something.com" method="post" enctype="text/plain"> <h3>Use this form to send an email to [insert my name here].</h3> Name:<br> <input type="text" name="name" value="Your name here" size="20"> <br> E-Mail:<br> <input type="text" name="e-mail" value="Your E-Mail Address" size="20"> <br> Message:<br> <input type="text" name="message" value="Your Message" size="40"> <br><br> <input type="submit" value="Send it!"> <input type="reset" value="Reset All Fields"> </form> The form shows up, but the email doesn't send. Can somebody help me out, please? i am creating a website in Html script in notepad and have set up a form and would now like it to get the results of the form and send these to my hotmail acount with out gettin the user to have togo through outlook to do this. Is this possible? i have been getting so stressed over this Thanks Sir Minstral Ok i am trying to make a page with a form to fill out and when they hit submit it gets send right to my email...but right now when i hit send my outlook comes up to send the email and i know not alot of people have outlook set up...how do i go about doing this??? what do i change in this? <!--Sign Up--> <center> <hr> <h4 class="bold">Sign Up! Become A Member</h4> <p class="height">Please fill all this out and submit it!</p> <form method="post" action="mailto:Email@Email.com" enctype="text/plain"> <fieldset> <legend>Your Information</legend><br> Ok So I was a little premature in adding to my previous post the the form was now working in IE. I've written 2 forms, the first was a very basic general feedback form, asking the user to rate the site as Excellent, Good or Poor, together with a comments field. This is a relaunch of a site than ran into a little disuse and became out of date. (Once the site is live I'll think about adding the details into a topic on this site for you all to see.) The second was as my first post (form redirect) listed. Both were using the method="post" but I'd read that you didn't need this if you were using 'mailto' tag so I removed it. Now it adds the email recipients but removes the email subject and doesn't add the responses into the body of the email. Further reading indicated that for very basic forms the method="get" is better so I changed it. This stopped it working in Chrome. Can't win! Leaving the method out.............still no joy. Hey ho. Will probably get the site host to use Perl (or whatever other they use for other sites they have developed). Benefits? No more headaches for me. Less chance of spammers. Hopefully better security and more likelihood of people using the form as they wouidn't need to give their email address if they didn't want to. And, hopefully, some chance of being able to filter out those inapproriate responses some people like to submit with these forms. |