• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 521
  • Last Modified:

VBscript code for html form visibility

I am beginner in vbscript and trying to use it in html forms.  I wish to make entry a particular form invisible for entries after a deadline.  In the same html documents, I have other information that users can see.
I am attaching the code that is not working. Can anyone help.

<script language="vbscript">
sub hello()
dim xyz
set xyz=document.frmform1
if date() > #9-30-2008# then
msgbox "This is after Sep 30 2008. Entry time is over"
msgbox "Please make the entries"

end if
end sub
<body onload="hello()">

<form name="frmform1">

<input type="text" name="fld1">
<input type="text" name="fld2">
Srinivas Mantha
Srinivas Mantha
1 Solution
Srinivas ManthaConsultant Anesthesiologist and Pain PhysicianAuthor Commented:
Thank you so very much. I got the solution within 10 hours after posting the question.  I could not find the solution in more than 4 books on ASP and HTNML.  Thank you once again
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now