validating radiogroup with perl/cgi
Posted
by Tyug
on Stack Overflow
See other posts from Stack Overflow
or by Tyug
Published on 2010-03-09T16:42:46Z
Indexed on
2010/03/12
17:17 UTC
Read the original article
Hit count: 166
Is it possible to validate a radio group (so something is checked off, or chosen) using server-side validation with Perl? If so, how?
I already have it for JavaScript, but I want this form to be able to be submitted even without JavaScript enabled. Thus I will need the validation on the server-side.
There is no fixed name for the radio group, it can change, however there must be a name, so that @names = $cgi->param()
will give all the names.
I'm thinking along something that will give me the type, like the type in JavaScript, to determine if it's a radio button in a group.
© Stack Overflow or respective owner