HTML - Html Form Problem
Dear Friends,
I need to sort out this "HTML Form" problem asap. Actually I want to link up the form submit button to my email so that when an user click the submit button of the form, it will staright away submit to my email address without using any outlook or other mail clients. My email address is dev@hss.org and i wanna link up the submit button to it using the below mentioned form... can anyone do that for me ... Please ... Thank you .. Arco <script language='javascript'> function verifyMe(){ var msg=''; if(document.getElementById('Name').value==''){ msg+='- Full Name\n\n';} var email=document.getElementById('Email').value; if(!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(email))){ msg+='- Invalid Email Address: '+email+'\n\n';} if(document.getElementById('Email').value==''){ msg+='- Email\n\n';} if(document.getElementById('Country').value==''){ msg+='- Country\n\n';} if(document.getElementById('Problem').value==''){ msg+='- Questions/Problem\n\n';} if(document.getElementById('Newsletter').value==''){ msg+='- Newsletter\n\n';} if(document.getElementById('Prescription').value==''){ msg+='- Medical Prescription\n\n';} if(msg!=''){ alert('The following fields are empty or invalid:\n\n'+msg); return false }else{ return true } } </script> <form name='Doctor' action="htmform.htm"' method='POST' enctype='multipart/form-data' onsubmit='return verifyMe();'> <table class='table_form_1' id='table_form_1' cellspacing='0'> <tr> <td class='ftbl_row_1' ><LABEL for='Name' ACCESSKEY='F' ><b style='color:red'>*</b><u>F</u>ull Name </td> <td class='ftbl_row_1a' ><input type='text' name='Name' id='Name' size='45' value=''> </td> </tr> <tr> <td class='ftbl_row_2' ><LABEL for='Email' ACCESSKEY='E' ><b style='color:red'>*</b><u>E</u>mail </td> <td class='ftbl_row_2a' ><input type='text' name='Email' id='Email' size='45' value=''> </td> </tr> <tr> <td class='ftbl_row_1' ><LABEL for='Country' ACCESSKEY='A' ><b style='color:red'>*</b>Country </td> <td class='ftbl_row_1a' ><input type='text' name='Country' id='Country' size='45' value=''> </td> </tr> <tr> <td valign='top' class='ftbl_row_2' ><LABEL for='Problem' ACCESSKEY='Q' ><b style='color:red'>*</b><u>Q</u>uestions/Problem </td> <td class='ftbl_row_2a' ><textarea name='Problem' id='Problem' cols='35' rows='6' value=''></textarea> </td> </tr> <tr> <td class='ftbl_row_1' ><LABEL for='Newsletter' ACCESSKEY='N' ><b style='color:red'>*</b><u>N</u>ewsletter </td> <td class='ftbl_row_1a' ><select name='Newsletter' id='Newsletter'> <option value='Yes'>Yes</option> <option value=' No'> No</option> </select> </td> </tr> <tr> <td class='ftbl_row_2' ><LABEL for='Prescription' ACCESSKEY='M' ><b style='color:red'>*</b><u>M</u>edical Prescription </td> <td class='ftbl_row_2a' ><input type='file' name='Prescription' id='Prescription' size='45' value=''> </td> </tr> <tr> <td colspan='2' align='right'><input type='submit' name='submit' value='Submit'> <input type='reset' name='reset' value='Reset'><br /> </td> </tr> </table> </form> Similar TutorialsHello, I have created a form, but i have a big problem. I think i make a terrible mistake with the code. I think problem is comming from here, and this is the code where i have doubts: <form action=" mailto:name@somemail.com ?subject=form submission" method="post" enctype="text/plain"> My idea is to receive an email with some information of the next fields, but when i submit the information from the form , my outlook express is opening. How can i fix it and the submited info to go to my email? 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. 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 Hi all, I can not seem to figure out why a form on my fathers website is having trouble being read by Internet Explorer. The text directing what should be written (ie. Name, Telephone, Email Address, etc...) is being cut in half. I have no idea why it is doing this I have tried playing around with the cell padding to no avail. I appreciate you help Thanks, Josh Korn script completed, thx My html problem keeps failling, with all my image codes.. shown for 10 errors which are all for the images what's wrong? Here is the code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- New Perspectives on HTML and XHTML 5th Edition Tutorial 2 Case 2 Fiddler Home Page Author: Date: 2-16-2011 Filename: home.htm Supporting files: fiddler.jpg --> <title>, ITSE 1411 Lab Project 2, Tutorial 2 Case 2, Due 02/23/2011</title> </head> <body> <div> <img src="fiddler.jpg" alt="Fiddler on the Roof" /> <hr /> <a href="home2.htm"><img src="home.jpg" alt="home" /></a> <a href="slide1txt.htm"<img src="start.jpg" alt="start" /></a> <a href="slide1txt.htm"<img src="back.jpg" alt="back" /></a> <a href="slide2txt.htm"<img src="forward.jpg" alt="forward" /></a> <a href="slide6txt.htm"<img src="end.jpg" alt="end" /></a> <br /> <a href="slide1txt.htm"<img src="thumb1.jpg" alt="slide1" style="border-width: 5" /></a> <a href="slide2txt.htm"<img src="thumb2.jpg" alt="slide2" style="border-width: 0" /></a> <a href="slide3txt.htm"<img src="thumb3.jpg" alt="slide3" style="border-width: 0" /></a> <a href="slide4txt.htm"<img src="thumb4.jpg" alt="slide4" style="border-width: 0" /></a> <a href="slide5txt.htm"<img src="thumb5.jpg" alt="slide5" style="border-width: 0" /></a> <a href="slide6txt.htm"<img src="thumb6.jpg" alt="slide6" style="border-width: 0" /></a> </div> <hr /> <div> <img src="slide1.jpg" alt="slide1" /> </div> <blockquote> <p><i>Do You Love Me?</i> sung by Deb Ingalls and Thomas Gates</p> </blockquote> </body> </html> hi, i am newbie to web design, my html form works in firefox but not in opera or IE, i use outlook 2002 the code is show below <form action="MAILTO:tecnodude@gmail.com" method="post" enctype="text/plain"><p> </p> <p> <font color="#FFFFFF"> </font><font color="#000000">Please forward us your name and email address so we can provide you a better service.</font></p> <p><input type="text" name="T1" size="20"> <font color="#000000"> :Name</font></p> <p><input type="text" name="T2" size="20"> <font color="#FFFFFF"> </font><font color="#000000">:Email</font></p> <p><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p> </form> Hi All, I'm far from a HTML pro so need some help with this one. I need to automate some auditing as much as I can. What I was thinking was to create a html form with yes/no answers. when a NO answer is provided, a description of why this is bad is shown, to either copy and paste into a word doc or even better, auto generate the document. i.e. Web form with question and radio button Y/N answers; Q1. Is there an Anti-Virus Y/N Q2. Are MS updates up to date Y/N Q3. Are all firewalls on Y/N Q4. Are Password complexities met Y/N As you can see, Q1 and Q3 were answered with a NO. so would like details on these questions shown/generated/exported to word. i.e. Q1. Is there an Anti-Virus; Anti-Virus is required to prevent malicious software bla bla bla Q3. Are all Firewalls on; Firewalls prevent attacks bla bla blab laa. IS this easy to do? hi, i am newbie to web design, my html form works in firefox but not in opera or IE, i use outlook 2002 the code is show below <form action="MAILTO:tecnodude@gmail.com" method="post" enctype="text/plain"><p> </p> <p> <font color="#FFFFFF"> </font><font color="#000000">Please forward us your name and email address so we can provide you a better service.</font></p> <p><input type="text" name="T1" size="20"> <font color="#000000"> :Name</font></p> <p><input type="text" name="T2" size="20"> <font color="#FFFFFF"> </font><font color="#000000">:Email</font></p> <p><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p> </form> any idea what the problem is? Is any one willing to make me a small form for my contact us page in html? All i want is a box that asks there email and then a larger box below were they can type there message and then when they click on send i want it to send me the infomation to my email at info4football_programmes@yahoo.co.uk Thanks Hi I have created a form in HTML that will ultimately use php to send it's content. Rather than clutter the page I have placed the titles of the fields within themselves, which the user will then overwrite. How can I make it so when the user clicks or tabs into the fields the titles disappear and (if it's possible) reappear if the user clicks/tabs out again without entering their own info. Is it going to be a bit of clever js? The test link is he http://www.dnco.com/contactform.html or my relevant code follows. Please note that it uses a bit of CSS to define the look of the fields: HTML Code: <div style="position:absolute; top:0px; left:0px"> <input type="text" class="formelement" name="name" value="Your name" /> </div> <div style="position:absolute; top:30px; left:0px"> <input type="text" class="formelement" name="email" value="Your email" /> </div> <div id="comments" style="position:absolute; top:60px; left:0px"> <textarea name="comments" class="formelement_multiline" value="Comments">Comments</textarea> </div> <div id="submit" style="position:absolute; top:170px; left:0px"> <input type="submit" value="Send" class="formbutton"> </div> What do i do? What im trying is the action is "http://website.com/images/" but what im trying to do is where the user can enter its own text like "Image1.png" so when they do hit submit. It will enter the action= "http://website.com/images/" in the address bar and then what ever the user typed in it will followed right behind it for example ="http://website.com/images/image1.png" Code: <form name="input" action="http://website.com/images/" method="get"> Search: <input type="text" value="" /><br /> <input type="submit" value="Submit" /> </form> This is what i have so far. Not entirely sure its correct. Because it always have the "?=" Before the text so it will always get the address wrong. Does anyone know what i mean. Or is it even possible to have something were they don't have to enter the ".png" the code will insirt it at the end. hi guys i just added a protection to my forum - which look like this just a simple hyperlink thing can sm1 help me to modify it into to look into like this- regards ian I'm having a bit of trouble setting up my e-mail form on my website. www.dynamitede.com - the form and coding is in the HTML. I found a script for an HTML e-mail form. I'm just looking to have people fill out this form, I am emailed the results, and a download box comes up for the e-book or they can be taken to another page. I'm assuming I'm missing some sort of other coding that has to be configured with the form. I have tried the free apps and tools, but they look ugly. Any assistance is appreciated! Probably a simple fix for an experienced coder. I have a Website which I need put on a CD to send out to customers. I am looking for a way of being able to send the contents of an HTML feedback form to a mail address. Bear in mind that the Form will be on a CD and will have no server side support (CGI, PHP etc). I am rapidly coming to the belief that this cannot be done!!!! Can anyone help Hey I am building a form and I would like to record the person's ip when they sumit the form for security reasons, is there a code for that. I went to a few sites and the codes did not work. Hello, on my website ... davidm.freepgs.com/index3.php ... on my right side i have a search form. if you open my site with mozilla firefox everything look great but if you view it with Internet explorer the search button is not in the box but below it which messes up the options below it. This is a little part of the form where the problem is occuring: <input type="hidden" name="domains" value="davidm.freepgs.com"></input> <label for="sbi" style="display: none">Enter your search terms</label> <input type="text" name="q" size="9" maxlength="255" value="" id="sbi"></input> <label for="sbb" style="display: none">Submit search form</label> <input type="submit" name="sa" value="Search" id="sbb" class="button"></input> the search button is the class="button"> it is located in my css file. Can anyone please help me out here? Hi, I have set up a basic HTML form that asks a customer a series of questions. My question is, using PHP or similar can anybody help witht he code to, Provide basic data validation, all fields require a response and then to email the data direct to me without using the clients email software. All the internet help I can find refers to put functions in seperate files, but I can't do that as I don't have access to the host servers! I intend to put a capatcha on it to prevent spamming, again this seems to rely on other php files too. Is there away that you can create functions that are called, but are not in seperate files? Any help would be greatly received. - Jason The problem I am having with it is the mailto part. Whenever I click send, it automatically opens Microsoft Outlook. Here is what I need: 1) Make it so that it sends to the e-mail I specify without opening Microsoft Outlook. 2) Make all the fields required to be sent. Code: <title>multiple-choice quiz form</title> </head> <body bgcolor=#ffffff> <h3><font size=6><center>Rate Your Support</center></font></h3> <h3><center>Please remember that we are not owned by or affiliated with Facebook. We therefore can not edit or change your profile. We cannot edit wall-to-walls, inbox messages, deactivated profiles, groups, fan-pages, notifications, settings, or Facebook Chat.</center></h3> <form method="mail" action="mailto:jobrewer@packer.edu?subject=Rate Your Support" enctype="text/plain"> <p>1. Who helped you with your problem?:<BR> <input type="radio" name="1.The staff member who helped me with my issue was" value="maison"> funnytim<BR> <input type="radio" name="1.The staff member who helped me with my issue was" value="quatre"> Lightning Yoshi<BR> <input type="radio" name="1.The staff member who helped me with my issue was" value="soleil"> The Listener<BR> <p>2. Was your problem responded to in a reasonable amount of time?<BR> <input type="radio" name="2. The word which means fish is" value="maison"> 1 - 72+ hours<BR> <input type="radio" name="2. The word which means fish is" value="valise"> 2 - 48-71 hours<BR> <input type="radio" name="2. The word which means fish is" value="soleil"> 3 - 36-47 hours <BR> <input type="radio" name="2. The word which means fish is" value="poisson"> 4 - 24-35 hours<BR> <input type="radio" name="2. The word which means fish is" value="poisson"> 5 - 24- hours<BR> </p> <p>3. Was your question properly diagnosed by our staff?:<BR> <input type="radio" name="3. The word which means suitcase is" value="renard"> No<BR> <input type="radio" name="3. The word which means suitcase is" value="valise"> Barely<BR> <input type="radio" name="3. The word which means suitcase is" value="soleil"> Somewhat<BR> <input type="radio" name="3. The word which means suitcase is" value="poisson"> Mostly<BR> <input type="radio" name="3. The word which means suitcase is" value="poisson"> Fully<BR> </p> <p>4. Were you given any type of directions to solve your problem?:<BR> <input type="radio" name="3. The word which means suitcase is" value="renard"> No<BR> <input type="radio" name="3. The word which means suitcase is" value="valise"> Somewhat<BR> <input type="radio" name="3. The word which means suitcase is" value="soleil"> Yes<BR> </p> <p>5. Did your supporter type in complete sentences, use correct grammar, punctuation, and spelling, etc.?:<BR> <input type="radio" name="3. The word which means suitcase is" value="renard"> No<BR> <input type="radio" name="3. The word which means suitcase is" value="valise"> Somewhat<BR> <input type="radio" name="3. The word which means suitcase is" value="soleil"> Yes<BR> </p> <p>6. Was your topic locked before the issue was resolved?:<BR> <input type="radio" name="3. The word which means suitcase is" value="renard"> No<BR> <input type="radio" name="3. The word which means suitcase is" value="soleil"> Yes<BR> </p> <p>7. Did you receive the solution you needed?:<BR> <input type="radio" name="3. The word which means suitcase is" value="renard"> No<BR> <input type="radio" name="3. The word which means suitcase is" value="valise"> Barely<BR> <input type="radio" name="3. The word which means suitcase is" value="soleil"> Somewhat<BR> <input type="radio" name="3. The word which means suitcase is" value="poisson"> Mostly<BR> <input type="radio" name="3. The word which means suitcase is" value="poisson"> Fully<BR> </p> <p>8. Would you recommend us to a friend?:<BR> <input type="radio" name="3. The word which means suitcase is" value="renard"> No<BR> <input type="radio" name="3. The word which means suitcase is" value="valise"> Maybe<BR> <input type="radio" name="3. The word which means suitcase is" value="soleil"> Definitely<BR> <p>9. On a scale of 1-10 (with 10 being best), what would you rate Facebook Forum Support?:<BR> <input type="radio" name="3. The word which means suitcase is" value="renard"> 1/10; I didn't get any support whatsoever<BR> <input type="radio" name="3. The word which means suitcase is" value="valise"> 2/10 <BR> <input type="radio" name="3. The word which means suitcase is" value="soleil"> 3/10 <BR> <input type="radio" name="3. The word which means suitcase is" value="renard"> 4/10<BR> <input type="radio" name="3. The word which means suitcase is" value="valise"> 5/10<BR> <input type="radio" name="3. The word which means suitcase is" value="soleil"> 6/10<BR> <input type="radio" name="3. The word which means suitcase is" value="soleil"> 7/10 <BR> <input type="radio" name="3. The word which means suitcase is" value="renard"> 8/10<BR> <input type="radio" name="3. The word which means suitcase is" value="valise"> 9/10<BR> <input type="radio" name="3. The word which means suitcase is" value="soleil"> 10/10; The support was very useful<BR> </p> <p>10. <br><form method="post" action=""> <textarea name="comments" cols="40" rows="5"> Enter your other comments here about your experience with our Facebook Support System... </textarea><br> </form> <br> <br> <br> <br> <input type="submit" value="Send Form"> <input type="reset" value="Clear Form"> </form> </body> </html> Hey Guys... need some help with a form. It seems like it should be a basic function but i can not get it to work. All I need a search form that will take whatever is entered to edit a url for instance http://www.mysite.com/<searchbox>/index.html so if i typed in hello into my search box it would open http://www.mysite.com/hello/index.html if you could help me with this it would be great |