HTML - Outputting Html Through Forms Into Mysql
Hi all.
I have a problem with forms I could use some help with. Here is how I want the section of it I am having problems with to look. Code: <input type="select" name="inst1img"> <option value="NULL" selected>None</option> <option value="<img src="http://www.****.com/images/arrowlr.gif">">Left/Right arrows </option> <option value="<img src="http://www.****.com/images/arrowud.gif">">Up/Down Arrows </option> </select> and so on and so forth. The point of this is, I have a game site and I am making a php/html admin section to quickly add games and their instructions to the site. However, when I use a code like shown above, the form is screwed up and it shows the images in the middle of it. Can anyone suggest some way I might be able to get this to work? The best I could come up with so far is to use a text box input, and leave out all the html elements, such as the <img src=" and just fill that in each time, but as you can immagine, that is BEYOND a pain in the rear. The other thing is, when this data is put through to mysql database, it has to show up as perfect html otherwise it won't work right on the page when I include it. Thank you in advance! Jax2 Similar TutorialsI'm trying to make a small page that reads a CSV file (exported from excel) that gives me a list of my DVDs with an img that is a link to the file to start the movie. It actually works fine (needs some formatting tweaking), but as it is below, it lists the movies vertically (up & down). Anyone know how I can make it list them horizontally? For whatever reason I prefer it that way. Any help would be appreciated. I'm testing using IE btw. movies-test.html ===== <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title> Graphical list </title> </head> <body bgcolor=#C0C0C0> <object ID=data classid="clsid:333C7BC4-460F-11D0-BC04-0080C7055A83"> <param nAme="DataURL" value="movies-test.csv"> <param nAme="UseHeader" value="true"> </object> <table CELLSPACING=25 datasrc='#data'> <tr> <td><center> <a href= <span datafld='location'> </span><img width=290 height=400 src=<span datafld='picture'></span> </a><br> <span datafld='name'> </span> <span datafld='time'></span> </center></td> </tr> </table> </body> </html> movies-test.csv ===== name,time,picture,location 8mm,123,C:/DVDs/images/8mm_cs.jpg,D:/8mm/video_ts/video_ts.ifo 12 Monkeys,131,C:/DVDs/images/12_monkeys_cs.jpg,E:/12_monkeys/video_ts/video_ts.ifo Thirteen Ghosts,91,C:/DVDs/images/13_ghosts_CS.jpg,E:/thirteen_ghosts/video_ts/video_ts.ifo 13th Warrior,102,C:/DVDs/images/13th_warrior_cs.jpg,D:/13th_warrior/video_ts/video_ts.ifo 16 Blocks,105,C:/DVDs/images/16_blocks_cs.jpg,H:/16_blocks/video_ts/video_ts.ifo Hello, I am doing a coursework which involves adding sub-totals to a grand total. <javascript> function update_total() { $total = 0; $total = parseFloat(document.getElementById('adult_single_cost').value) + parseFloat(document.getElementById('adult_return_cost').value) + parseFloat(document.getElementById('adult_allday_cost').value) + parseFloat(document.getElementById('senior_single_cost').value) + parseFloat(document.getElementById('senior_return_cost').value) + parseFloat(document.getElementById('senior_allday_cost').value) + parseFloat(document.getElementById('student_single_cost').value) + parseFloat(document.getElementById('student_return_cost').value) + parseFloat(document.getElementById('student_allday_cost').value) + parseFloat(document.getElementById('child_single_cost').value) + parseFloat(document.getElementById('child_return_cost').value) + parseFloat(document.getElementById('child_allday_cost').value); document.getElementById('total').value = $total.toFixed(2); </javascript> I want to output the grand total on another html page, i have tryed doing this by <script type="text/JavaScript"> <!-- function MM_popupMsg(msg) { alert(msg); } function MM_goToURL() { var i, args=MM_goToURL.arguments; document.MM_returnValue = false; for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'"); } </script> <h3>Cost:<? echo$_GET['total']; ?></h3> If anyone can help me, i will be very greatful. Thank you, Jeeves. Please help! My form is finished and I am trying to set up a thank you page that the advertiser gets when they submit a form. I am still learning and I am looking for a simple HTML code that can give me that. Much information is appreciated. I'm trying to change a paypal form code I want to set up 4 radio buttons(payment plans). Each of the buttons I'd like to change the value part of this line <input type="hidden" name="amount" value="1.00"> into different amounts(chosen by me) how might i go about doing this? Hi guys, i wonder if there is anyone out there that can help me with something. I have tried to fix it but to no avail. I cannot see any issues with the HTML, especially within the form tag. The form was produced by a company for me, with a script so that it emails the information to an end user. The problem is this: When you try to click on the text field the cursor doesnt come up unless u move to the top of the box. This only occurs on the first four os so fields, then the rest are perfect. As a workround, i have set the value to some text, and when the user clicks on it it clears the form and this works fine, but if the user clicks away from the form, and hovers over the text box the same problem exists. The URL is www.ventureaircraftbrokering.com the form is on the main page. I have tried to compare the code but nothing i can see. Thanks to all concerned in advance. Bpjones I need a form where when you click "Submit" it does not open Outlook. Instead, I want it to email the information to be, but redirect them to a confirmation that the information has been sent. How do I do this? Thank you! i got assigned a task of creating a satifaction survey for the it department. i need help with this. is there any type of step by step guide out there. or better yet would anyone out there be able to create the form for me so i can insert into a web page? thanks! I am trying to make an HTML form with each field having an up and a down button next to it. There will be a total of 32 fields in a 4 by 8 table. The fields will be numerical starting with a value of 0. Then you can add or subtract 1 by pushing the corresponding button. I have figured out how to make the individule field using this code: <form> <input type=text name=amount value=5> <input type=button value="up" onClick="javascript:this.form.amount.value++;"> <input type=button value="down" onClick="javascript:this.form.amount.value--;"> </form> I can do this 32 times inside each cell of the table. But obviously I cannot submit this type of form do to the fact that you would end up with a <form> tag inside of a <form> tag. Is there any way around this? So that I can have the fields with their up and down buttons and then in the end be able to press the submit button and have it send the results in a text document to an email address using a php formmail script. hi i have a form that i want to send to emails the form ask for password , user name and secret question , the thing is that i only know html and nothing about cgi scripts so what i did was that i search in google for cgi scripts so i found many but now i dont know what to do do i have to have one page for the form like form.htm and another for the cgi script like form.php or form.asp ? both of this files have to go into my server who host my page ? can you please help me to solve this thank you . rocko I'm trying to make an e-mail form on a website using HTML that will send the information to me without opening up Microsoft Outlook. The only problem is the web host I'm using doesn't support PHP. Any ideas how this can be done? (I think this is in the right section, if not, I apologize!) Hello....long time viewer of this site....love it....learnt so much I have a question.... I used emailmeform.com to create my form for my site, but wanted to use my server instead of theirs.......Can't find a way around in the code I have a feeling this is what I need to change: "http://www.emailmeform.com/fid.php?formid=119926" How do I cut them out of the picture so that the form is submitted straight to my email? Here it is as it stands: <form method="post" action="http://www.emailmeform.com/fid.php?formid=119926" enctype="multipart/form-data" accept-charset="UTF-8"> <table width="659" border="0" cellpadding="2" cellspacing="0" bgcolor="#FFFFFF"> <tr> <td width="480"> <p><font face="Verdana" size="2" color="#000000">Please help the site remain free and fill out the survey.</font></p> <p><font color="#000000" size="2" face="Verdana">Universal password for all eBooks will be emailed to you immediatley</font></p> <p class="style14"><font color="#000000" face="Verdana">*please read our <a href="TOS.html" title="TOS">terms of service</a> before submitting the survey</font></p> <div style="" id="mainmsg"> </div> </td> </tr> </table> <br> <table cellpadding="2" cellspacing="0" border="0" bgcolor="#FFFFFF"> <tr valign="top"> <td width="170" nowrap><font face="Verdana" size="2" color="#000000"><br /> Your Name</font><br /> <br /></td> <td width="351"> <br /> <input type="text" name="FieldData0" value="" maxlength="100" size="30"> <span class="style15"> *required</span> </td> </tr> <tr valign="top"> <td nowrap><font face="Verdana" size="2" color="#000000"><br /> Your Email Address<br /> <br /> </font></td> <td> <br /> <input type="text" name="FieldData1" value="" maxlength="100" size="30"> <span class="style15"> *required</span> </td> </tr> <tr valign="top"> <td nowrap><font face="Verdana" size="2" color="#000000"><br /> Phone Number<br /> <br /> </font></td> <td> <br /> <input type="text" name="FieldData2" value="" maxlength="100" size="30"> <span class="style15"> *required</span> </td> </tr> <tr valign="top"> <td nowrap><font face="Verdana" size="2" color="#000000"><br /> Interested In<br /> <br /> </font></td> <td><br /> <input type=checkbox name="FieldData3-0" value="Shares" id="check30"><font face="Verdana" size="2" color="#000000"><label for="check30">Shares</label></font><br><input type=checkbox name="FieldData3-1" value="Options" id="check31"><font face="Verdana" size="2" color="#000000"><label for="check31">Options</label></font><br><input type=checkbox name="FieldData3-2" value="CFDs" id="check32"><font face="Verdana" size="2" color="#000000"><label for="check32">CFDs</label></font><br><input type=checkbox name="FieldData3-3" value="Futures" id="check33"><font face="Verdana" size="2" color="#000000"><label for="check33">Futures</label></font><br><input type=checkbox name="FieldData3-4" value="FX" id="check34"><font face="Verdana" size="2" color="#000000"><label for="check34">FX</label></font><br><input type=checkbox name="FieldData3-5" value="Other" id="check35"><font face="Verdana" size="2" color="#000000"><label for="check35">Other</label></font><br> </td> </tr> <tr valign="top"> <td nowrap><font face="Verdana" size="2" color="#000000"><br /> Amount availiable to invest<br /> </font></td> <td> <br /> <input type=radio name="FieldData4" value="$0-$10k" id="radio40"><font face="Verdana" size="2" color="#000000"><label for="radio40">$0-$10k</label></font><br><input type=radio name="FieldData4" value="$10k-$25k" id="radio41"><font face="Verdana" size="2" color="#000000"><label for="radio41">$10k-$25k</label></font><br><input type=radio name="FieldData4" value="$25k-$50k" id="radio42"><font face="Verdana" size="2" color="#000000"><label for="radio42">$25k-$50k</label></font><br><input type=radio name="FieldData4" value="$50k-$200k" id="radio43"><font face="Verdana" size="2" color="#000000"><label for="radio43">$50k-$200k</label></font><br><input type=radio name="FieldData4" value="$200k+" id="radio44"><font face="Verdana" size="2" color="#000000"><label for="radio44">$200k+</label></font><br /> <br> </td> </tr> <tr valign="top"> <td nowrap><font face="Verdana" size="2" color="#000000"><br /> Currently trading through<br /> </font></td> <td> <br /> <input type="text" name="FieldData5" value="" maxlength="100" size="30"> <span class="style15">*optional</span></td> </tr> <tr valign="top"> <td nowrap><font face="Verdana" size="2" color="#000000"><br /> Experience<br /> </font></td> <td> <br /> <input type=radio name="FieldData6" value="Beginner" id="radio60"><font face="Verdana" size="2" color="#000000"><label for="radio60">Beginner</label></font><br><input type=radio name="FieldData6" value="Intermediate" id="radio61"><font face="Verdana" size="2" color="#000000"><label for="radio61">Intermediate</label></font><br><input type=radio name="FieldData6" value="Advanced" id="radio62"><font face="Verdana" size="2" color="#000000"><label for="radio62">Advanced</label></font><br> </td> </tr> <tr> <td colspan="2"></td> </tr> <tr> <td> </td> <td align="right"> <input type="text" name="hida2" value="" maxlength="100" size="3" style="display : none;"> <br /> <input type="submit" class="btn" value="Submit" name="Submit" /></td> </tr> <tr> <td colspan=2 align="center"> <br></td> </tr> </table> </form> Thanks so much! What are html forms, can any one explain aabout html forms. i just want to use htm forms to connect two web pages. just post the code it would more helpful for me. I am totally new to web development. I have a project in which i have to make a form. It is not a simple form with only 2-3 input areas but a series of 3-4 pages to be filled by person to enter into database. I need a good software to design a form. pls suggest me one?? i tried front page but it is bull****. also i want to know that in my form I wantr that if user clicks a radio button then a part of form glows up and then user can fill out that options.(I mean to say that by clicking a particular radio button event ) thanks in advance Almon Currently, I use MS FrontPage to build forms. I'd like to begin to move away from using FP extensions and just use FP for editing. I use several forms and I'd like to hear from anyone that can lead me to any freeware or shareware that I can use to build HTML forms instead of using FP's system. Whatever software I use for forms I'd like it to also include these 3 functions: 1. Allow for form error page 2. Allow for form acknowledgement page 3. Provide built in capability to send completed form data (via Submit) to specified email addresses. I've Googled this a few times but haven't been able to come up with what I'm looking for. I was hoping someone on this forum could help. Thanks I have a series of questions related to forms via html. 1. I am creating an employment application form. The form is pretty long, and I would like to create a "next" button that would bring the applicant to the next section, however I don't want it to submit because I would like to keep the application together in one piece (I might not be able to tell what piece belongs to which applicant, etc.). 2. The dreaded "SUBMIT" button... I've tried all the tutorials on the web that I can find, but I'm not sure I know exactly what's going on. Excuse me, but I am a little bit slow. A thorough explanation of how to create a mailto: myemail@mywebsite.com would be awesome. I don't know how to make it work. I put the "mailto" script in my forms, but nothing happens when I click submit. I will be posting the custom HTML to my form once it is complete so you can copy/paste however you'd like. To contact me directly, just go to: www.happypetpaws.net and click on my "Live Support" button. I'll answer. Thank you for your help! Hey Ppls I need a hand with a HTML form that i am doing, I have completed forms on various websites before and they have just sent with a confirmation to say that your query has been sent. Now i dont pretend to know everything or even a lil that there is to know about HTML, and i have taught myself everything i know, but when i was looking at this form everytime you hit submit it brings up everything in outlook, and i would much prefer it to send directly from the web site! HTML Code: <body> <form action="MAILTO:justabetterchat@hotmail.com" method="post" enctype="text/plain"> <LINK REL=STYLESHEET HREF="mystyles.css" TYPE="text/css"> <H2>Below is a easy to use form that we have made in order to continuously improve our chat! Feel free to give us feedback, make a query or even Complain about or compliment a staff member!</H2> Name:<br> <input type="text" name="name" value="Your Name" size="20"> </p> Mail:<br> <input type="text" name="mail" value="Your E-mail" size="20"> </p> Reason For Submission:<br> <select name="Reason for Submission"> <option value=""></option> <option value="General Inquiry">General Inquiry</option> <option value="Account Problems">Account Problems</option> <option value="Feedback">Feedback</option> <option value="Compliments and COmplaints">Compliments and Complaints</option> </select></p> Details of Query (if the query is about your account please include your username):<br> <textarea rows="10" cols="30">Details Go HERE!!!! </textarea><br> <input type="submit" value="Send"> <input type="reset" value="Reset"> </form> </body> </html> that is the code that i have for the form, it may not be the easiest or best but its what i know, its just as i have outlined it opens outlook wif everything you have imputed and u send from there, well for people like me i dont have outlook set up, i dont use outlook which is why i would much rather it not do that but just send straight from the site, it would be great if someone could help me! Cheers, Rissy For my Web application, the user inputs RNA sequences. The user may input as many as he/she wishes, so I need to provide the option to input how many sequences will be submitted. That number of text boxes/input boxes need to be generated. For instance, if the user enters 4, four text boxes will be generated so the user can input four sequences. Is there a way to do this solely with HTML? Hi I am currently trying to create a form which has one textbox, two radio buttons and a submit button and when the submit button is selected it will open another page and show the text from the text box and also show which radio button was selected. Currently i have two web pages, Forms.html which will have the textbox, radio buttons and submit button. Then i ahve page.html which i want to show the results. Currently the code in the forms.html page is: Code: <form action="page.html" method="post"> <fieldset> <legend>Testing form</legend> <p><label for="name">Name</label> <input type="text" id="name" /></p> <p><label for="male">Male</label> <input type="radio" value="male" id="male" name="gender" /></p> <p><label for="male">Female</label> <input type="radio" value="female" id="Female" name="gender" /></p> <p class="submit"><input type="submit" value="Submit" /></p><br/> </fieldset> </form> On the page.html the code i have is: Code: <% 'declare the variables that will receive the values Dim text, male, female 'receive the values sent from the form and assign them to variables 'note that request.form("name") will receive the value entered 'into the textfield called name name=Request.Form("text") email=Request.Form("male") comment=Request.Form("female") 'let's now print out the received values in the browser Response.Write("text: " & text & "<br>") Response.Write("male: " & male & "<br>") Response.Write("female: " & female & "<br>") %> However when you select the submit button it does open page.html but it does not show the results. Does anyone know why this is? Have i written the code wrong? Thanks Jeskit |