Dear Ryan C.
I know how to assign the values to array. But i want to read the array elements as we do in c program. Iam trying to use inputbox to read a element and then assign to the array. Here is the code.
The value of x iam reading through inputbox is taken as zero not as a value
please check the program for any error. let me know
<%@LANGUAGE="VBSCRIPT" %>
<%option explicit%>
<%dim a(10),n,i,x,y%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<%for i = 0 to 4 %>
<script language="VBScript">
x=InputBox ("Enter the array elements" )
</script>
<%y=Cint(x)%>
<%a(i)=y%>
<%Response.write("Array" & a(i))%>
<%next%>
</head>
<body>
<form name="f1">
</form>
</body>
</html>