FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

how to accept array variable from a form in Perl

 


shamil
I accept the scalar variables sent from a from as
Code:
$name =    param('name');
in Perl. Now i need to accept array variable like
Code:
<input type=radio name=ans1[] value=685 id="ans1_685">
<input type=radio name=ans1[] value=685 id="ans1_685">
. How can i do this?
kronso.23
I'm not very savvy with Perl, I'm still learning, especially with CGI scripts, but doing that is putting an array in a scalar context and so the scalar would only recieve like the first value of the array or the length of the array...? What is it you are trying to achieve?
Reply to topic    Frihost Forum Index -> Scripting -> Others

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.