in reply to How to access an unknown number of CGI variables in a CGI script
use strict; use warnings; use CGI; # do some other stuff..... # either functional style... my @students = param('student[]'); # OR OO-style... my $query = CGI->new; my @students = $query->param('student[]'); # OR Gangnam-style..... # no just kidding :-) # now process your student input, # remember to check no one is sending you weird data ..... foreach my $student (@students) { # wibble }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to access an unknown number of CGI variables in a CGI script
by prautt (Initiate) on Jan 08, 2013 at 16:56 UTC | |
by Anonymous Monk on Jan 09, 2013 at 09:15 UTC | |
by prautt (Initiate) on Jan 09, 2013 at 19:47 UTC | |
by marto (Cardinal) on Jan 10, 2013 at 11:24 UTC | |
by Anonymous Monk on Jan 09, 2013 at 20:05 UTC |