HTML - Html Form Submition
Hi there,
we got a request that when we submit a registration form on html we need to store the data in SQL Db and send an a email. i know how to do in asp.net.but the current website is already in HTML so please kindly give your advices. thanks, Nagaraju. Similar Tutorialshi there, i have an idea for a website but the main function of the site will be for the visitor to send me info though a feedback form. The form will have text feilds and i also want pictures to come with the text and a payment will also need to be taken from the visitor. can anyone advise me on the best way i can do this. I will be using html code to make the site many thanks all I have been trying this all day all I get is the easy %50 done... and I can't figure out the second form. I want the first button to use the entire form to register, and it does.. I want the second button, to just take the first input field, throw the text in there at the end of a specific url, and bring me to that page. Why is this so hard? HTML Code: <form name="trnyjump" method="post"> <input type="hidden" value="ppg" name="path"><input type="hidden" value="1" name="readrules"> <table width="220" border="0" align="center"> <TR BGCOLOR="#000000"><TD colspan="2" ALIGN="LEFT"><FONT FACE="TAHOMA" SIZE="2" COLOR="#FFFFFF">ENTER TOURNEY</FONT></TD></TR> <TR BGCOLOR="#000000"><TD WIDTH="40%" ALIGN="LEFT"><FONT FACE="TAHOMA" SIZE="2" COLOR="#FFFFFF">JUMP = </FONT></TD><TD WIDTH="60%" ALIGN="LEFT"><input type="text" SIZE="10" name="tcount" value=""></TD></TR> <TR BGCOLOR="#000000"><TD WIDTH="40%" ALIGN="LEFT"><FONT FACE="TAHOMA" SIZE="2" COLOR="#FFFFFF">NAME = </FONT></TD><TD WIDTH="60%" ALIGN="LEFT"><input type="text" name="name" SIZE="10" value=""></TD></TR> <TR BGCOLOR="#000000"><TD WIDTH="40%" ALIGN="LEFT"><FONT FACE="TAHOMA" SIZE="2" COLOR="#FFFFFF">PASSWORD = </FONT></TD><TD WIDTH="60%" ALIGN="LEFT"><input type="password" name="playerpass" SIZE="10" value=""></TD></TR> <TR><TD WIDTH="100%" colspan="2" ALIGN="LEFT"> <!-- mmmmm buttons --> <INPUT type="button" value="Register" name=Register onclick="return OnRegister();"> <INPUT type="button" value="View" name=View onSubmit="return OnView" action="/"> </form> </TD></Tr> <script language="Javascript"> function OnRegister() { document.trnyjump.action = "http://cgi4.igl.net/tourneysystem/register.php" document.trnyjump.target = "_blank"; // Open in a new window document.trnyjump.submit(); // Submit the page return true; } </script> <script> function OnView { document.trnyjump.action = ("http://cgi4.igl.net/tourney/ppg/" +form.tcount.value+ "/"); document.trnyjump.action = "_blank"; document.trnyjump.submit(); return true; } </script> I have also tried this for the second button... HTML Code: <script> function Ontcount(form) { if (form.trn.value) { var OpenWindow=window.open ("http://cgi4.igl.net/tourney/ppg/" +form.trn.value+ "/"); } return false; } </script> These may not look like they work right now because I have changed them so much thay may not be exactly what I am using... is there anybody here who can tell me how to get this to work. script completed, thx I am trying to make a form where the user chooses a number from a list box a number of people (1-10), and then the form has that many sections of data. What is the name of what I am trying to do? Any help would much be appreciated. Thanks again. Example: Number of People: (LIST BOX 1-10(let say I selected 1)) 1. Height: (TEXT BOX) Weight: (TEXT BOX) Age: (TEXT BOX) Another Example: Number of People: (LIST BOX 1-10(let say I selected 3)) 1. Height: (TEXT BOX) Weight: (TEXT BOX) Age: (TEXT BOX) 2. Height: (TEXT BOX) Weight: (TEXT BOX) Age: (TEXT BOX) 3. Height: (TEXT BOX) Weight: (TEXT BOX) Age: (TEXT BOX) Hi, I'm trying to create a form with two boxes for an insurance site. I want that in the first box the user will select the type of insurance and in the second box type the zip code. For every insurance type, the surfer will be directed to a different URL. This is the code that I have, but of course that it doesn't work: HTML Code: <form name="mainform"> <tr> <td colspan="2"> <select name="src" id="type"> <option value="http://www.mysite.com/results-car.html">Auto</option> <option value="http://www.mysite.com/results-home.html">Home</option> <option value="http://www.mysite.com/results-life.html">Life</option> <option value="http://www.mysite.com/results-health.html">Health</option> <option value="http://www.mysite.com/results-motorcycle.html">Motorcycle</option> <option value="http://www.mysite.com/results-business.html">Business</option> </select> </td> <input type="hidden" name="source" value="google" /> <tr> <td><input type="text" name="zipcode" maxlength="5" id="zip" /> </td> </tr> <tr> <td colspan="2" style="text-align:center;"><input type="submit" id="button" value="Go"/></td> </tr> </table> </form> For example, for auto insurance the URL should be: HTML Code: http://www.mysite.com/results-car.html?zipcode=10001&source=google Thanks!! 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. 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 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 i have a working order form on my website. the problem is i have 300 items in the form and when someone submits the form, i get all 300 items emailed to me, when all i want is the items orders. example: person orders itemC only i get in the email: itemA: itemB: itemC:1 itemD: etc x 300 when all i want in the email is: itemC:1 is that possible? 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> Hello, With a HTML form, is there anyway I can allow the user to send the form to my email without it opening up a email program? I currently have this... HTML Code: <form method="post" action="mailto:support@huntswebdesigns.co.uk"> If it is possible, what would I need to change in this? Cheers guys. 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 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? 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. 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. 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? Taking it slow... I need a web page. This web page will be composed of an irrelevant amount of questions, possibly twenty (20). An prospective applicant should be able to come to this web page, fill out the questions, and press a submit button. The questions should then be taken from that web page, put into either a Word document (.doc) or a PDF file (.pdf) in their corresponding areas. As a side note, the prospective applicant should not be able to see or edit the actual Word document or PDF file. He or she should just be able to fill in answers to the questions given and then submit and be done until called for an interview. This Word document or PDF file would then be emailed to the designated person that handles job applications. All of the necessary information would be already filled in, allowing for, lets say, an immediate interview with the prospective applicant once they arrive at the business instead of having to fill out the form by hand, possibly wasting 20-30 minutes. How would I go about making this? Is it even possible? Do I have to buy expensive software? Thanks in advance! I have an HTML form that has validations on some fields as well as other fields that dont have it. The past couple of days I have been getting blank emails of every form at least once a day. I have a few forms in my website, including ones in different languages, and this morning i got an email from each form with blank answers. I have a captcha on each one of the forms too. HELP sorry i found it |