#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2003
    Location
    Norway
    Posts
    3
    Rep Power
    0

    Question Need help with vbscript


    Hi !

    I am working on a school project and need a little bit help;
    I am using this code to display the date on my site;
    <Script language = VBScript>

    option explicit
    Dim a,a1,b
    a = WeekdayName(Weekday(date))
    a1 = Left(Ucase(a),1)
    b = date

    document.write a1 & Mid(a,2) & " " &left(b,8) & right(b,2)


    </script>

    But I really need to put it in a text box, like this;
    <input type="text">
    Because I need it to be submitted with a form...
    I would really apriciate some help..
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2003
    Location
    Melbourne, Australia
    Posts
    212
    Rep Power
    12
    You can set it as the default value for the text box. Or if it doesn't need changing, pass it as a hidden value on form submit.
    How can I soar like an eagle when
    I'm flying with turkey's?

IMN logo majestic logo threadwatch logo seochat tools logo