Article ID: 192552
Article Last Modified on 6/29/2004
<BODY>
<INPUT id=TextField1 name=TextField1>
<P>
<INPUT id=TextField2 name=TextField2>
<P>
<INPUT id=SubmitButton1 name=Submit1 type=submit value=Submit></P>
</BODY></HTML>
Notice that there are some tags missing. First the HTML tag is missing.
Secondly, there is no FORM tag. Edit the file manually to enter these
tags so that the final HTM looks like the following:
<HTML>
<BODY>
<P<
<FORM ID=Form1 NAME=Form1 METHOD=POST
ACTION="http://MyServer/MyDir/Test1.ASP">
<INPUT id=TextField1 name=TextField1>
<P>
<INPUT id=TextField2 name=TextField2>
<P>
<INPUT id=SubmitButton1 name=Submit1 type=submit value=Submit></P>
</FORM>
</BODY>
</HTML>
Private Function Form1_onsubmit() As Boolean
Dim Valid As Boolean
Valid = True
If TextField1.Value = "" Then
BaseWindow.alert "You must enter a value for Field1"
Valid = False
End If
If TextField2.Value = "" Then
BaseWindow.alert "You must enter a value for Field2"
Valid = False
End If
Form1_onsubmit = Valid
End Function
<%@ LANGUAGE="VBSCRIPT" %>
You entered the following values from your DHTML Page Designer
form:<p>
TextField1 = <%=Request.Form("TextField1") %><br>
TextField2 = <%=Request.Form("TextField2") %><br>
Additional query words: kbdsi kbDSupport kbVBp kbVBp600 kbDHTML kbInternet kbPageDesigner
Keywords: kbhowto KB192552