0

In PHP using isset() function for checking the form value is set or not? Like wise which methed is used in java?

Any one can help ASAP..?

3
Contributors
4
Replies
6
Views
5 Years
Discussion Span
Last Post by JamesCherrill
0

what exacltly is it you're trying to verify?

for instance: when your form contains checkboxes, you can't see whether those are "filled in" since not filled in is one of it's values.

do you mean a textField?

getText().isEmpty() should work.

0

when your form contains checkboxes, you can't see whether those are "filled in" since not filled in is one of it's values

what's wrong with isSelected() for check boxes? (or did I misunderstand your post?)

Edited by JamesCherrill

0

JamesCherrill: there is nothing wrong with isSelected.
my point is (for instance)

you are filling in a form, and you get:

"Are you married: " <checkbox>

if validation returns false if the checkbox is not checked, no single person will ever be able to complete the form.
the problem with components like that is: if it's not filled in or checked, you can't really know whether it is a mistake, or it is providing the correct answer.

0

OK, yes, I see what you mean. It's always (as in since the Lisa OS (1983)) been a problem that there's no "unknown" or "not eneterd yet" status for a check box.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.