HTML - Show Data Key In By User
hi,
i created a html form. Can i show watever data that key in by the user under the form? Following is my coding. <html> <head> <title>Websites</title> </head> <body bgcolor="#ffffff"> <h1>Goverment Websites</h1> <form action="form_action.asp" method="get"> Website address: http://<input type="text" name="website" size="60"/> destination:<input type="text" name="destination"size='30" <input type="submit" value="Submit" /> </html> Can you please guide me so that whatever data that key in by user will be shown under the same html pagr too.. thanks :-) Similar Tutorialshello i need some advice on two things if anyone has the time 1) the "enter" a href opens a page specific to the users name ie: user name rose opens ../users/rose.html user name dave opens ../users/dave.html 2) 'hiding' the password data <form action=""> <input type="text" name="user" size="20" /> username <br /> <br /> <input type="password" name="password" size="20" /> password <a href="../users/USERSIDPAGE.html">enter</a> </form> thanks sophia Hey, I'm making a website about a television show. I want to show the broadcast times of the TV show, the times can be found on the website of the television company. http://www.zappelin.nl/pororo Under the bit where it says: ''Volgende Aflevering'' it shows the date of the next episode. Whenever the episode is over it automatically changes to the next broadcast time. I want to just show this information on my website too, how would I go about this? Thanks! I'm not very good at HTML and such so if someone could give a step-by-step explanation I'd very much appreciate it. I'm trying to develop a page that displays a simple concise summary of data neatly in rows. I am including a magnifying glass image next to each field to be used to display details of the summary field. I want the onclick event of the image to bring up an alert box with data in the field that contains the details of the summary field, but I can't get it to work. Here is the code from my ASP page: Code: <html> <head> <% DB_ConnectionString = "Provider=SQLOLEDB.1; Password=pwd;User ID=user;Initial Catalog=myDB;Data Source=www.myserver.com;" SQL = "SELECT * FROM myTable" Set RST = Server.CreateObject("ADODB.Recordset") RST.Open SQL,DB_ConnectionString sFont = "<font face=" + chr(34) + "Arial" + chr(34) + "size=" + chr(34) + "2" + chr(34) + ">" eFont = "</font>" vToday = Date() %> <title>Daily Info</title> </head> <body bgproperties="fixed" topmargin="0" leftmargin="0"> <table border="1" width="100%" style="border: 1 solid #000000" cellspacing="0" cellpadding="2"> <tr> <td width="100%" bgcolor="#FFFFFF" bordercolorlight="#000000" bordercolordark="#000000" colspan="10"> <p align="center"><b><font face="Arial" size="3"> Daily Info for <%Response.write(vToday)%></i></font></b></p> </td> </tr> <% Cellstart ="<td bgcolor=""#C0C0C0"" align=""center"">" Response.Write "<tr>" Response.Write Cellstart + sFont + "<B>Buyer Name</B>" + eFont + "</TD>" Response.Write Cellstart + sFont + "<B></B>" + eFont + "</TD>" Response.Write Cellstart + sFont + "<B>Company Name</B>" + eFont + "</TD>" Response.Write Cellstart + sFont + "<B></B>" + eFont + "</TD>" Response.Write Cellstart + sFont + "<B>Order Total</B>" + eFont + "</TD>" Response.Write Cellstart + sFont + "<B></B>" + eFont + "</TD>" Response.Write "</tr>" Do Until RST.eof vBuyer = rst("BuyerName") vBuyerAddr = rst("BuyerAddress") vCompany = rst("CompanyName") vCompanyAddr = rst("CompanyAddress") vOrderSum = rst("OrderSummary") vOrderDetail = rst("OrderDetail") Cellstart ="<td bgcolor=""#FFFFFF"" align=""center"">" Response.Write "<tr>" Response.Write Cellstart & sFont & vBuyer & eFont &"</td>" response.write "<td>" & "<img src='magnifyB.JPG' onClick=alert(vBuyerAddr) width='15'>" & "</td>" Response.Write Cellstart & sFont & vCompany & eFont &"</td>" response.write "<td>" & "<img src='magnifyB.JPG' onClick=alert(vCompanyAddr) width='15'>" & "</td>" Response.Write Cellstart & sFont & vOrderSum & eFont &"</td>" response.write "<td>" & "<img src='magnifyB.JPG' onClick=alert(vOrderDetail) width='15'>" & "</td>" Response.Write "</tr>" rst.movenext loop Set rst = Nothing %> </table> </body> </html> Can someone point out what I'm doing wrong. Thanks, Sup I'm not new to HTML but I'm definitely still a beginner. So, please don't expect me to know exactly what your talking about. I'm trying to make a website, that has a "show more" and a "show less", for long paragraphs, that don't have enough room to fit on a page. Here's my code: head: Code: <style type="text/css"> <!-- #wrapper { } a { cursor:pointer; } --> </style> <script type="text/javascript"> <!-- function switchMenu(obj) { var el = document.getElementById(obj); if ( el.style.display != "none" ) { el.style.display = 'none'; } else { el.style.display = ''; } } function hide(){ document.getElementById("seemore1").style.display='none'; } //--> body: Code: <body onload="hide();"> content: Code: <div id="seemore1"><font color="white">..and it will display more content in a new paragraph..</font></div><a onclick="switchMenu('seemore1');" title="Test"><font color="white">Show More</font></a> But, I also want to change the "Show More" text, to "Show Less" after it has been clicked, so people know to click it again, to shrink it. This is what I tried to add to it, but it failed. head: Code: <script type="text/javascript"> oldTextAry = new Array(); function changeText (fieldObj, newTexStr) { if (newTexStr == fieldObj.innerHTML) { fieldObj.innerHTML = oldTextAry[fieldObj.id]; } else { oldTextAry[fieldObj.id] = fieldObj.innerHTML; fieldObj.innerHTML = newTexStr; } } </script> body: Code: <a href="#" onclick="changeText(this,'Show Less');" id="text1link">Show More</a> I tried the most simple thing that I thought of.. was adding both around the text, but, obviously that didn't work.. Does anyone know of any solution to my problem? Hello all! I'm working for school at an website, and I've a problem.. I've made a link, when you click on it it open some tekst information. I would this 4 time, just only the first one works...! Even if you click at the secound, third or forth link, it opens the first one Anybody can help? Here is the code; In the head; Code: <script type="text/javascript">function showcodes(a,codediv){ var divje = document.getElementById( codediv ); if (divje.style.display == "block") { divje.style.display = "none"; a.innerHTML='Klap uit'; } else { divje.style.display = "block"; a.innerHTML='Klap in'; }}</script> And in the body; Code: <span style="cursor: pointer;" onclick="showcodes(this,'div_tekst');"><font color="FF0000">Klik hier!</font></span><div id="div_tekst" style="display: none;"> <font color="#FF9900"> Wil je even snel weten wat voor weer het is? Hier een overzichtje!<br><br> Hier zie je wat voor weer het momenteel is, als je je muis erbij houd, zie je een paar gegevens! <br><br> <IFRAME SRC="http://gratisweerdata.buienradar.nl/hetweer.php" NORESIZE SCROLLING=NO HSPACE=0 VSPACE=0 FRAMEBORDER=0 MARGINHEIGHT=0 MARGINWIDTH=0 WIDTH=50 HEIGHT=40></IFRAME> <br><br> <script src=http://m.fileindex.nl/files.js> </script> <br><br> <IFRAME SRC="http://www.fileindex.nl/iframe.php? style=&bgcolor=FFFFFF&link=0000FF" NORESIZE SCROLLING=YES HSPACE=0 VSPACE=0 FRAMEBORDER=0 MARGINHEIGHT=0 MARGINWIDTH=0 WIDTH=250 HEIGHT=100></IFRAME><font> </div> I hope someone could help me! Edit*; here is the example; http://informaticacase.freehostia.com/ (click in the example on 'het weer') So I've got a form with some input text. In addition to the data in the input text I want to send some other data that has already been predetermined on initial page load. How would I declare the other data within the form element? Thanks Hi Experts, I am designing a webpage where based on the year selection the associated years webtable needs to be displayed in the webpage. Pls give som suggestions and if possible the code on to how to code this using HTML and Jav Script. I know I have to write afunction and then call the fn based on the input.but need your help on this. Thanks, Bsquare I have been using my site for some time now and it carries the image name over when you clicked on purchasing the print. It carries it still, but when you submit the form, the image name isnt there and the form errors because the field is blank. Here is the site: www.sthompsonphoto.com I cant seem to figure out why it disappears when you click Submit? Any help would be great! Hi everybody! I have a jsp page with a form and a table. My aim is that when i press the submit button of the form,collect the data and fill the table with it. I am working with J2EE. I have already collected the data in a Java class,but I dont know how to introduce this data into the table. Best Regards! i made this site today and for some strange reason, it will not show up in IE AT ALL!!!!!what is wrong with it? heres link http://ascskate.ueuo.com/testpage.htm and code HTML Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>pixelbypixeldesigns | welcome to pixelbypixeldesigns <style type="text/css"> <!-- body,td,th { font-family: "Century Gothic"; font-size: 12px; font-weight: bold; color: #FFFFFF; background-repeat: no repeat; } body { background-color: #000000; background-image: url(bg.jpg); } #Layer2 { position:absolute; top:0px; width:750px; height:100%; z-index:1; left:216px; } #layer1 { width:100%; top:0px; height:50px; z-index:2; left: 216px; } #footer { position: absolute; bottom: 0; width:800px; height:25px; z-index:3; } #drop { padding:0; margin:0; height:2em; list-style-type:none; border-left:1px solid #FFFFFF; } #drop li { float:left; width:5em; height:2em; line-height:2em; border-right:1px solid #00000; position:relative; text-align:center; } #drop li a, #drop li a:visited { display:block; text-decoration:none; color:#FFFFF; } #drop li a span, #drop li a:visited span { display:none; } #drop li a:hover { border:0; /* needed to trigger IE */ color:#000000; } #drop li a:hover span { display:block; width:5em; height:2em; text-align:center; position:absolute; left:-2px; top:-3px; color:#00000; cursor:pointer; } .date { font-size: 20px; font-weight: bold; color: #FF0000; border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-color: #FFFFFF; font-family: "Century Gothic"; border-bottom-width: 1px; } a:link { color: #FFFFFF; text-decoration: none; } a:visited { color: #FFFFFF; text-decoration: none; } a:hover { color: #990000; background-color: #FFFFFF; text-decoration: none; } a:active { color: #FFFFFF; text-decoration: none; } //--> </style> </head> <body> <div id="layer2"> <div align="left"><img src="top.png"></center> <center><ul id="drop"> <li><a href="#nogo">About</a></li> <li><a href="#nogo">Porfolio</a></li> <li><a href="#nogo">Contact</a></li> <li><a href="#nogo">Links</a></li> <li><a href="#nogo">FAQ</a></li> </ul></center> </div> <p class="date">10.25.06</p> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi ut massa. Fusce eleifend facilisis tortor. Nullam quis urna. Quisque sagittis ligula. Etiam commodo neque vel mauris. Quisque ac nunc. Fusce laoreet mi in velit gravida accumsan. Cras venenatis feugiat enim. Sed mattis mattis odio. Ut mattis cursus augue. Morbi eros leo, luctus et, semper sed, aliquam ut, lacus. Praesent et urna ac dolor egestas eleifend. Curabitur aliquam eleifend neque. Fusce sed odio. Nullam sapien. Nullam libero urna, accumsan vel, tempus sit amet, pharetra sit amet, quam. Proin cursus. Ut neque sapien, venenatis eget, adipiscing ac, gravida quis, nisl. Sed nec magna. Nulla dignissim mollis libero. Cras gravida lectus a enim. Etiam eleifend suscipit pede. Nulla facilisi. Etiam nec augue vitae dui venenatis eleifend. Nunc malesuada interdum lorem. Sed porta nibh pharetra nunc. Suspendisse eu dolor. Donec auctor. Praesent pulvinar orci non urna. Donec ornare vestibulum lectus. Vivamus rhoncus, justo vel ornare feugiat, libero felis rutrum nisi, in vulputate mi orci non lectus. <p><a href="#">test link</a></p> Etiam velit dolor, condimentum et, faucibus in, condimentum sit amet, magna. Suspendisse lobortis volutpat turpis. Integer nisi augue, feugiat quis, sagittis non, posuere ac, dui. Pellentesque id turpis id ante fermentum laoreet. Vivamus at arcu. Vivamus at purus vitae elit fringilla euismod. Duis nec nisi. Cras non nisi et augue blandit posuere. Sed dignissim ornare purus. Cras mollis, turpis id vulputate pretium, mauris mi tempus urna, sit amet dapibus risus risus vel mauris. Ut massa. Quisque eleifend. Praesent vel urna. Nam ornare ligula sit amet velit. Cras dolor nulla, nonummy sit amet, congue sed, commodo id, sapien. Ut quis eros eget mi molestie ornare. Nulla venenatis quam a lorem. Praesent non neque quis elit bibendum ultrices. Praesent eleifend dolor quis ligula. </div> <div id="footer" align="right"><a href="#">Home</a> | <a href="#">About</a> | <a href="#">Portfolio</a> | <a href="#">Contact</a> | <a href="#>Links</a> | <a href="#">FAQ</a> </body> </html> hello, I'm having a little trouble trying to find a solution, maybe I'm just searching the wrong key words as ive spent a hours trying to work this out, what I'm after is a way that once I have created a website, I can add some form of coding or software that allows the website owner/end user to change the content or add pictures easily with out the need to have any knowledge in HTML etc. I know this should be possible as many website company's offer this service and it's also used on the web site building software offered by most hosting providers. If someone could point me in the right direction or just what this type of service is called I would be very greatful. Many thanks Julian Hello All- I'd like to add a user registration and login to my website. So that an individual may log in and be brought to a customized personal screen. Obviously this is some in-depth stuff but I'd like to know how to go about learning how to do such a thing. Any thoughts? thanks! Hi, is possible to differentiate css code depending on the operating system of the customers ? for example fonts look different in Firefox using Windows and Firefox using Safari thanks Hey guys very new, have this cool idea for a site and would like to go with it. How can I get a map like this sites. www.skatespots.net Where users can post on the map for others to see. Thank you Sorry if this isn't in the right place. i have a windows live website, its the free basic version, the purpose of the site is to display minutes from meetings and other general info, however i would like to make the info private and was wondering if it would be possible to do this with html/xhml, i have the form script to login from the homepage but am unsure how to procceed with creating the users id's and passwords any help for a novice would be appreciated regards and thanks john www.erctrw.com I am working on a page at the moment and I am trying to figure out the best way to let the user know what page they are on. For example... if they click services... maybe the leftnav would go Bold or I could write services on the Top of the page? I was wondering if I could edit the CSS to automate this? I doubt you can do this but just in case here is my css Code: body { margin:10px; background-color:#f0f0f0; font-family:verdana,arial,helvetica,sans-serif; font-size:18px; } #container { width:776px; margin:auto; background-image:url(../images/container-white-bg.png); box-shadow:#333 15px 15px 30px; } #banner { display:block; width:760px; height:120px; padding:8px 8px 0 8px; background-color:#066; } #top-nav { width:768px; height:81px; padding:8px 0 8px 8px; margin:0; list-style-type:none; background-color:#066; } #top-nav li { float:left; margin-right:8px; } #top-nav a,#top-nav span { position:relative; display:block; width:120px; height:81px; } #top-nav span { position:absolute; top:0; left:0; background-image:url(../images/gallery-banner.png); } #mcad {background-position:-8px -8px;} #nios {background-position:-134px -8px;} #moad {background-position:-260px -8px;} #scad {background-position:-386px -8px;} #clou {background-position:-512px -8px;} #what {background-position:-638px -8px;} #nav { float:left; width:120px; padding:0 8px; margin:0; list-style-type:none; background-color:#066; } #nav li { margin-bottom:2px; } #nav a { display:block; width:120px; padding:30px 0; font-family:arial,sans-serif; font-size:90%; font-weight:bold; color:#033; text-align:center; background-color:#699; } #nav a:visited { color:#000; } #nav a:hover { color:#fff; } #content { float:left; width:610px; padding:25px 15px 10px 15px; } #content p { margin:0 0 10px; font-size:90%; color:#000; } #services { font-size:110%; color:#000; } .text-indent { text-indent:20px; } .padding-bottom { padding-bottom:16px; } #footer { clear:both; line-height:30px; color:#000000; text-align:center; background-color:#066; } and here is an example page Contact us Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="language" content="english"> <meta http-equiv="Content-Style-Type" content="text/css"> <title>MESH, Inc. - Contact us</title> <link rel="stylesheet" type="text/css" href="css/main.css"> </head> <body> <div id="container"> <img id="banner" src="images/topbanner.png" alt="top banner"> <ul id="top-nav"> <li><a href="mcad_project.html">mcad<span id="mcad"></span></a></li> <li><a href="niosh_project.html">niosh<span id="nios"></span></a></li> <li><a href="mcad_project.html">mcad<span id="moad"></span></a></li> <li><a href="mcad_project.html">mcad<span id="scad"></span></a></li> <li><a href="cloud_mapping.html">cloud<span id="clou"></span></a></li> <li><a href="#">what<span id="what"></span></a></li> </ul> <ul id="nav"> <li><a href="home.html">Home</a></li> <li><a href="products.html">Products</a></li> <li><a href="services.html">Engineering Services</a></li> <li><a href="projects.html">Projects</a></li> <li><a href="publications.html">Publications</a></li> <li><a href="contact_us.html">Contact Us</a></li> <li><a href="about_us.html">About Us</a></li> </ul> <div id="content"> <p>If you would like to get in touch with us about the services we can offer, please email us</p> <p> </p> <p>For general enquiry <a href="mailto:info@meshoxford.com">info@meshoxford.com</a></p> <p> </p> <p>For business development <a href="mailto:meshengineering@meshoxford.com">meshengineering@meshoxford.com</a></p> <p>or call us at 610-932-7754 </p> <p>MESH is located on 114 Barnsley Road, Oxford , PA 19363</p> <p> </p> </div><!-- end #content --> <div id="footer">Contact Us via phone 610-932-7754 or email <a href="mailto:info@meshoxford.com">info@meshoxford.com</a></div> </div><!-- end #container --> </body> </html> Thank you in advance M This might have already been answered but I need html code for this. "User input field" redirects to www.website.com/"user input".aspx Simple I think but I am going crazy trying to get it to work. I would like it to open to the page not a frame. Thanks Pete Hey everyone! I am new to this forum and I have a very lame question (almost afraid to ask). I have a very simple website consisting of 2 frames only (topframe for a very simple menu and a mainframe). I have done such simple websites multiple times and I never had any problems removing the border(s) between the frames. In the <frameset> I just set all the attributes (like framespacing and frameborder) to "0" (and I also tried "NO"). In Firefox this works perfectly and the border in between the mainframe and the topframe does not show, but in Explorer the border does show. I can't get rid of the border in IE. Does anyone know what I am doing wrong? Thanks in advance! Regards, sAner Would anyone be able to tell me why this image won't show? I have no idea! <tr> <td align="center"><img src="logo.jpg" alt="Flowers by Design" height="100" width="760"></td> </tr> |