Hello friends,
It is my first time programming in cgi/perl, and i need to do a quick task.
I have 5 checkboxes for answer5.
I want to receive the checked values in my checkboxes (into an array) and concatenante them so that $answer5 will be received as e.g. "Trades Date / Pre-settlement / Archived" if ckbox 1, 2 and 5 are selected. Please guide me in the right path?
It is my first time programming in cgi/perl, and i need to do a quick task.
I have 5 checkboxes for answer5.
I want to receive the checked values in my checkboxes (into an array) and concatenante them so that $answer5 will be received as e.g. "Trades Date / Pre-settlement / Archived" if ckbox 1, 2 and 5 are selected. Please guide me in the right path?
Code:
<input type=checkbox name='answer5' value="Trades Date">Trades Date
<input type=checkbox name='answer5' value="Pre-settlement">Pre-settlement
<input type=checkbox name='answer5' value="Up to one month">Up to one month
<input type=checkbox name='answer5' value="Up to 3 months">Up to 3 months
<input type=checkbox name='answer5' value="Archived">Archived
@answer5 = param('answer5');
foreach $ckbox5 (@answer5) {
....}