This example displays a form on a page . The user then enters a date , if the date is invalid then a message will be displayed on the screen . Examples of valid dates are as follows
12-12-09
12/12/09
<form method =”post” action=”<%= Request.ServerVariables(“SCRIPT_NAME”) %>”>
<input type =”text” name=”date”><br>
<input type=”submit”>
</form>
<%
Dim strDate , blnValid , dteDate
If Request.ServerVariables(“CONTENT_LENGTH”) <>0 Then
strDate [...]
Now create a folder called counters or you can call it something else if you want just remember and change the code above . Now create a text file called counter1.txt and enter whatever you wish to start the count at.
<%@ Language=VBScript %>
<%
Dim fso
Set fso = Server.CreateObject(“Scripting.FileSystemObject”)
//this is the path to your counter1.txt file
counter = [...]
Create a database in access called stock.mdb .
Now create a table like in the image in figure 1 and save this as stock
stock database
Now ensure that the last price , change , open price , daily high , daily low fields all have the field size set as Double , this is because the [...]