Personally, I would use Javascript over VBScript because it makes more sense, and browsers other than Internet Explorer support it. (VBScript is a Microsoft product, thus only Internet Explorer supports it).
But if you really want to know how to make your code work:
Code:
<html>
<!-- user inputs a value,and the box returns the same value that the user inputs -->
<head>
<script language="vbs">
sub bvalue_onclick()
msgbox theForm.theInput.value
end sub
</script>
</head>
<body bgcolor="fafad2">
<!-- form -->
<form name="theForm">
Input any value: <input type="text" name="theInput">
<input type="button" name="bvalue" value="click me">
</form>
<!-- end of form -->
</body>
</html>
For more form stuff with VBScript, check out:
http://authors.aspalliance.com/glenncook/vbscript.asp
If you'd like to learn a little Javascript, check out:
http://javascript.about.com/library/...rmvalidate.htm
You do need the <form> tag if you want to be able to submit the inputs on your form somewhere, such as to an ASP, PHP, JSP, Servlet, CGI, or something else to do some logic stuff, or even to send the inputs to an email address.
If you're not going to do anything with your inputs outside of this page, then no, you don't need the form tags. But it still doesn't hurt to have them in.
Hope that clears some stuff up. Post back if you're having more troubles,
Sadiq.