Hiya, I am very new to programming, but I find VB Script quite easy and fast. Especially on websites I make!
My problem is, I want to make the variable that people input into a form input box (e.g. thier search criteria) then the variable (Document.search.criteria.Value) to become the first part of the destination they are sent to after they have submitted.
So far I have-
<html>
<script language=VBScript>
Function search
dim search
If search = "joe" then
msgbox "hi"
Else
msgbox "bog off"
End If
End Function
</script>
<body>
<form name="search">
<input type="text" name="txtsearch" size=20 maxlength=100>
<input type=button value="!go!" onClick="search">
</form>
</body>
</html>
If anyone knows anyay of making this happen! Please Reply! cheers
My problem is, I want to make the variable that people input into a form input box (e.g. thier search criteria) then the variable (Document.search.criteria.Value) to become the first part of the destination they are sent to after they have submitted.
So far I have-
<html>
<script language=VBScript>
Function search
dim search
If search = "joe" then
msgbox "hi"
Else
msgbox "bog off"
End If
End Function
</script>
<body>
<form name="search">
<input type="text" name="txtsearch" size=20 maxlength=100>
<input type=button value="!go!" onClick="search">
</form>
</body>
</html>
If anyone knows anyay of making this happen! Please Reply! cheers