All I'm trying to do here is to verify that a field on a HTML form is filled in before it is sent to the server before processing.
Here is the code I have come up with:
<script language="VBScript">
Function QuickQuote_onsubmit()
If Len(document.QuickQuote.School Name) <1 then
msgbox ("you gotta enter a school name"
QuickQuote_onsubmit = false
End IF
End Function
</script>
It keeps giving me a run time error saying "expected )"
The name of the form is "QuickQuote" which is on a document called quickquote.html
here is my form tag:
<form action="QuickQuoteProc.asp" method="POST" name="QuickQuote">
the name of the field is "School Name"
I hope I gave enough info.
Can somebody point me in the right direction here.
Thank you.
SC.
Here is the code I have come up with:
<script language="VBScript">
Function QuickQuote_onsubmit()
If Len(document.QuickQuote.School Name) <1 then
msgbox ("you gotta enter a school name"
QuickQuote_onsubmit = false
End IF
End Function
</script>
It keeps giving me a run time error saying "expected )"
The name of the form is "QuickQuote" which is on a document called quickquote.html
here is my form tag:
<form action="QuickQuoteProc.asp" method="POST" name="QuickQuote">
the name of the field is "School Name"
I hope I gave enough info.
Can somebody point me in the right direction here.
Thank you.
SC.