Jun 13, 2014, 9:08 AM
Post #2 of 2
[In reply to]
- test if an option was selected. There are numerous ways to do this, searching this in Google will provide different solutions.
- alert("my message") if an option was not selected. Return false to ensure form submission is cancelled.
- any other validation can be performed in a similar manner to above. Don't forget you will need to validate both on client and server side, or on server side alone, never on client side alone.
- use CGI (https://metacpan.org/pod/CGI) and its param method in your Perl script to fetch the values of the options selected. For a more modern Perl approach use Plack.
(This post was edited by Zhris on Jun 13, 2014, 10:26 AM)