HTML - Specifying Current Date In Form
Hello,
I have the following form on my webpage, however I need to modify the code so that where it says value ="20080916", i.e. todays date in the format YYYYMMDD, I need it to change to whatever the date is on the particular day that the site is accessed and the form used. Any ideas? Thanks Damian <form action="http://logis.korail.go.kr/driveinfo/TrainDriveSearchp.jsp" method="get"> <input name="opsDd" type="hidden" id="opsDd" value="20080916"> <p align="center"> <!--webbot bot="Validation" B-Value-Required="TRUE" I-Minimum-Length="5" I-Maximum-Length="5" --> <input name="trnNo" id="trnNo" style="font-family: Arial;" size="3" maxlength="4"> <input name="pageNo" type="hidden" id="pageNo" value="1"> </p> <p align="center"> <input type="submit" value="Submit" style="font-family: Arial; font-weight: bold"> </p> </form> Similar TutorialsHi, I was trying to get the system date on a form and an excel spreadsheet, but with no success.I am new to the web concept.Any help will be appreciated. Thanks, Hi everyone, New to this site so I hope i can get some helpful tips. I'm kinda new to HTML so here are my questions. I'm creating a request form and require the contents of the form to my email address but i don't want it to be in a file. Another feature i want is the date field. When the user tabs or clicks in the date field i want the current date to be populated in the text field. I've attached the code: <html> <body> <h1>Request Form</h1> <form method="POST" action="mailto:email@email.com"> Date: <input type="text" name="date" > <br> Requested by: <input type="text" name="reqeustor"> <br><br> Assigned to: <input type="radio" name="assignee" value="Name1"> Female<br> <input type="radio" name="assignee" value="Name2"> Male<br><br> Decription of request:<br> <textarea rows="50" cols="80" name="descrip"></textarea><br> <input type="submit" name="submit" value="Submit Request""> <input type="reset" name="reset" value="Reset"> </form> </body> </html> Any help will be greatly appreciated. Thank you. Hi, I was wondering if anyone knew how to make the second date in the following code default to 1 year ahead of the first date <td><strong>Issue Date:</strong> <td><script>DateInput('issue_date', true, 'MON-DD-YYYY')</script><td align="left"><font color="red">*</font> <tr> <td><strong>Valid Thru:</strong> <td><script>DateInput('valid_thru', true, 'MON-DD-YYYY')</script><td><font color="red">*</font> Thank You Can anyone help me add a date to my form? This is HTML, not PHP. I have tried using a JAVA script to create a date variable. I cannot figure out how to get this variable into my form and have it SUBMIT properly. Thanks rmsowell123 I have a donations form http://www.roycastle.org/tributes/tribute_input.htm, which anyone can fill in. Would like the date format to change autmatically when the country field is applied. For example country = United States date format =08/15/2007 I created the look of the poll through Dreamweaver. How do I link the poll from my forums so that when they vote on the front page it will vote on the forums? Basically trying to make my front page a portal I guess from scratch. Heres a link to my homepage with the poll: http://compkiosk.com/ And heres the forum with the poll: http://www.compkiosk.com/Forums/viewtopic.php?f=51&t=8 I don't know how to make the Radio buttons work with the submit button. Hi. Im looking for a script that allows the current url you are visiting to be set as a your startpage. Not just one single url but the one you are on! Anybody know of such a script? Cant find it Is it possobel to show current month in my drop down . Thanks I am trying to create a simple html page that when opened and whilst viewing has a running clock...is that possible..? If so, what coding is required...? Hi there, I am using dreamweaver to make this website and I have got a little problem. I have got this template which has a top nav bar, and if it is selected it has a class="current" for CSS. I am using it in a template so when one updates they all do. This is where the problem occurs. I cannot set each one to current on the nav bar. I could make the nav bar and editable region, however I dont want to, as then if I update it, it wont up date any of the others. Is there a way to do a sort of IF statment saying if the url equals www.mydomain.com/aboutus.html class equals current? Thanks. Josh Hi all, If you go to http://kvc.dk/CTC7/index.htm Press "ctc-info" in the top menu you goes to a page with an iframe and links on top. When you press these links i want the current link to stay active until you press on another link. I have tried this: http://forums.htmlhelp.com/index.php...ndpost&p=38645 But i cant get it to work. Heres the code: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/> <title>CTC</title> <link rel="stylesheet" type="text/css" href="../stylesheet.css"/> </head> <body> <table border="0" width="950" cellspacing="0" cellpadding="0" height="500"> <tr> <td align="right" bgcolor="#000000" valign="top" style="padding-right: 10px; padding-top: 70px" background="../images/Frontimages/ombygning.jpg"> <table border="0" width="500" cellspacing="0" cellpadding="0" > <tr> <td style="border: 2px solid #FFFFFF"> <table border="0" width="100%" cellspacing="0" cellpadding="0" background="../images/hvidbg.png" > <tr> <td style="padding-left:5px; padding-right:5px; padding-top:5px; padding-bottom:14px"> <a target="menu" href="Text/CTCinfo/omctc.htm">Om CTC</a> | <a target="menu" href="Text/CTCinfo/ansatte.htm">Ansatte</a> | <a target="menu" href="Text/CTCinfo/samarbejdspartnere.htm">Samarbejdspartnere</a> | <a target="menu" href="Text/CTCinfo/dopingpolitik.htm">Dopingpolitik</a> | <a target="menu" href="Text/CTCinfo/job.htm">Job</a> | </font><a target="menu" href="Text/CTCinfo/downloads.htm"> Downloads</a></td> </tr> <tr> <td> <iframe name="menu" src="Text/CTCinfo/omctc.htm" width="500" height="329" frameborder="0" allowtransparency="true" background-color="transparent"></iframe> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </body> </html> Hi guys, Basically, I have a .swf that I want to put on multiple pages that is capable of linking to different pages without having to customise the xml per page. I'll try and explain myself: If I inset the flash file on page1, then I want to have links coming out of the flash that direct to http://site/page1/A and http://site/page1/B. I'd then like to use the same flash on page two, and have the links point to http://site/page2/A and http://site/page2/B. I basically need to have the link address take into account the page the user is on and add an A, or B to the address. Is this possible? Perhaps it will require javascript? I can't get my head around this, so any help would be much appreciated! Thanks Alright, I haven't been coding in a while, just got back into it. Well my question is, how can I make the Home button, light up, ONLY on the Home Page (Chat button light up on Chat page) etc etc. I already have rollover image buttons on my site. Here is my HTML: Code: <html> <head> <link href="style.css" rel="stylesheet" type="text/css"> <title>Decker Designs</title> <SCRIPT LANGUAGE="JavaScript"> image1 = new Image(); image1.src = "http://s2.postimage.org/gn90899g/home2.png"; image2 = new Image(); image2.src = "http://s2.postimage.org/gocp4l44/chat2.png"; image3 = new Image(); image3.src = "http://s2.postimage.org/gp1i6sis/gal2.png"; </script> <a href="index.html" onmouseover="image1.src='http://s2.postimage.org/gn90899g/home2.png';" onmouseout="image1.src='http://s2.postimage.org/gn5p5k9w/home1.png';"> <img name="image1" src="http://s2.postimage.org/gn5p5k9w/home1.png" border=0></a> <a href="chat.html" onmouseover="image2.src='http://s2.postimage.org/gocp4l44/chat2.png';" onmouseout="image2.src='http://s2.postimage.org/gohnqmlg/chat1.png';"> <img name="image2" src="http://s2.postimage.org/gohnqmlg/chat1.png" border=0></a> <a href="gal.html" onmouseover="image3.src='http://s2.postimage.org/gp1i6sis/gal2.png';" onmouseout="image3.src='http://s2.postimage.org/goy743j8/gal1.png';"> <img name="image3" src="http://s2.postimage.org/goy743j8/gal1.png" border=0></a> </head> <body> Thanks everyone! can someone help me with a simple code that will take a url "URL.com/something/ and then remove "URL.com/,/" and append ".swf" and then would show an object at "anotherURL.com/something.swf? I know there are scripts that take the current URL and can modify and use it. Code: <h1>Title of Video</h1> <p style="text-align: left;"> <object width="600" height="600" data="http://URL.net/nd/video.swf"> </object> </p> so if the HTML/java script was on url.com/2011/10/something then the object data/source would be at url.net/nd/something.swf and if the script was on url.com/2011/10/somethingelse then the object data/source would be at url.net/nd/somethingelse.swf i'm sure this is possible because I've seen similar scripting done for something else I had where entering text in a box in a webpage would put that text at the end of a URL upon hitting a go button. any help is greatly appreciated! thanks! XTC What I want is to use some html or javascript or something to show the user of my site the exact page they are viewing. Then i would set it up so they could either bookmark it or copy the link. So a normal bookmarking script is not what I want. I need to be able to display the link the user is viewing on the page they are viewing. How can this be done? Hi Guys, I send php emails to myself and when click on the link it opens a new windows. Is there anyway I can force the link to opened in the current window its in ? I want to display the current page URL in an input box, so users can copy the url from the input box rather than from the adress bar. Kinda like this: HTML Code: <input type="text" readonly="readonly" value=" -PAGE URL AUTOMATICALLY APPEARS HERE- " /> I've seen a code that can display the URL, but it displays as regular text, rather than inside an input box. Secondly, I was wondering if the same thing could be done(in an input box), but the url will be displayed inside of a link- like this: HTML Code: <input type="text" readonly="readonly" value=" <a target='_blank' href='PAGE URL APPEARS AUTOMATICALLY HERE'>Click here!<a> " /> Is this possible to do? hai, could anyone plz tell me, how to open window popup in current html page ( that means not in different window) without statusbar,locationbar,titlebar and menubar and scrollbar. Thanks®ards kelvin Hello I'm now well on my way to making my first website from html code. Please could someone give me the examples of: 1) Opening a link in current tab 2) Opening a link in new tab 3) Opening a link in a new window I'm a designer with a working but by no means expert familiarity with html and css. My products are bundles that include photo slideshows, video and audio clips, text and links to pdf and tif files. They are distributed on dvds and thumb drives. I've been using Flash to assemble them. I understand that Flash is on the way out, at least insofar as HTML 5 is already able to do the many of the same things without the need of a proprietary browser add-in. I understand it is already capable of doing everything I currently do with Flash. My question: which if any of the current browsers are capable of performing all of these functions? I currently bundle Flash Player with my products, but I'd much rather bundle a browser. Thanks in advance, P |