Process PHP-style array (square brackets) from HTML form in Perl CGI


/ Published in: Perl
Save to your folder(s)

This is inspired by this http://www.cgi101.com/book/ch5/text.html so I'm using a similar example. In PHP you can combine a set of checkboxes into an array using square brackets like this:


Red
Green
Blue
Gold



PHP does not do this automatically but it's pretty simple to do if you filter by regular expressions.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.