|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
VBScript: Checking if a form field exists
In javascript, there is a way to see if a form field exists....
PHP Code:
Is there a way to do that same exact thing in VBScript. Currently, I'm running a loop through all input objects searching for my item by name, which usually works okay, but my current page has thousands of checkboxes that I have to search through, and it's not completing quickly enough. TIA. |
|
#2
|
||||
|
||||
|
Checkboxes only get detected if they have been checked. Meaning if you have the following code on your page.
Code:
for each name in Request.Form
if(name = "Checkbox1") Then
Response.write("Field Exists")
end If
next
The checkbox name will only be detected IF That specific checkbox has been checked...otherwise it won't detect it. |
|
#3
|
|||
|
|||
|
Need it Client Side though.
Not in an action page from a form. |
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > VBScript: Checking if a form field exists |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|