Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Nov 2010
    Thanked 0 Times in 0 Posts

    Input Current Date

    How to input the current date into a form field.
    function todaydate(){
    var today_date= new Date()
    var myyear=today_date.getYear()
    var mymonth=today_date.getMonth()+1
    var mytoday=today_date.getDate()


    <body onLoad=todaydate()">

    <table width="620" cellpadding="0" cellspacing="5">

    <!-- LIST OF LINKS -->
    <td id="links" valign="top" width="100" rowspan="7">
    <a href="#">Home Page</a><br>
    <a href="#">Product Catalog</a><br>
    <a href="#">Order Form</a><br>
    <a href="#">Maps Online</a><br>
    <a href="#">Contact Us</a><br><br>
    <a href="#">Countries</a><br>
    <a href="#">States</a><br>
    <a href="#">National Parks</a><br>
    <a href="#">Hiking Trails</a><br>
    <a href="#">Cities</a><br>
    <a href="#">Astronomical</a><br>
    <a href="#">Natural</a><br><br>
    <a href="#">GoMap 1.0</a><br>
    <a href="#">Drive Planner 2.0<br>
    <a href="#">Hiker 1.0</a><br>
    <a href="#">G-Receiver I</a><br>
    <a href="#">G-Receiver II</a><br>
    <a href="#">G-Receiver III</a><br><br>
    <a href="#">Downloads</a><br>
    <a href="#">Tech Support</a><br>
    <a href="#">FAQs</a>

    <td id="logo" valign="top" width="520" colspan="2">
    <img src="gpsware.jpg" alt="GPS-ware">


    <!-- START OF ORDER FORM -->
    <form name="order" method="post">
    <h1 style="margin-bottom:0px">Order Form</h1>

    <!-- FORM DATE -->
    <td align="right">
    <span class="fmlabel">Date:</span>
    <form name="myForm">
    <input type="text" name="myField" value="">

  2. #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    London, England
    Thanked 2,703 Times in 2,679 Posts
    See:- http://www.codingforums.com/showthread.php?t=17515.

    You will not get any reply in this forum which is intended to be used only to post a completed (working) script for showcasing/benefit of others.

    When posting here please help us to help you by following the posting guidelines and wrapping your code in CODE tags. This means use the octothorpe or # button on the toolbar which will insert the tags. You can (and should) edit your previous post.

    It will always improve your chances of getting a useful reply if you observe the form rules and posting guidelines.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts