How to check if a POST submitted field exists in VBScript?
问题 After a form is submitted, how does one check server-side if a particular field exists? For example: If [Exists] Request("FieldName") Then ... End If 回答1: Check if it's not empty. There are a few different ways, but the one I've seen more frequently used is along the lines of: If Request("FieldName") <> "" Then 'etc. End If I usually explicitly check the Form and QueryString collections with some variation of one of the code below if I may be getting the variable from one or the other