should I use count to see if button was pressed?

W

wolfing1

So far I've been using instructions like 'if request.form("var.x") <>
"" then ...' but then I found that if images are disabled (or not
found) and I click on the alt text, then Firefox (or was it IE?) sends
a 'var.x=' in the response so my instruction doesn't detect that the
'button' was pressed. Is it safe to change my checks to 'if
request.form("var.x").count > 0 then ...' instead? does it work for
all browser responses and HTML standards, etc?
 
W

wolfing1

So far I've been using instructions like 'if request.form("var.x") <>
"" then ...' but then I found that if images are disabled (or not
found) and I click on the alt text, then Firefox (or was it IE?) sends
a 'var.x=' in the response so my instruction doesn't detect that the
'button' was pressed. Is it safe to change my checks to 'if
request.form("var.x").count > 0 then ...' instead? does it work for
all browser responses and HTML standards, etc?
By 'button' I mean <input type='image'> sorry
 
B

Bob Barrows [MVP]

So far I've been using instructions like 'if request.form("var.x") <>
"" then ...' but then I found that if images are disabled (or not
found) and I click on the alt text, then Firefox (or was it IE?) sends
a 'var.x=' in the response so my instruction doesn't detect that the
'button' was pressed. Is it safe to change my checks to 'if
request.form("var.x").count > 0 then ...' instead? does it work for
all browser responses and HTML standards, etc?

Yes and yes.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,139
Messages
2,570,805
Members
47,351
Latest member
LolaD32479

Latest Threads

Top