Hi, I am trying to parse a param in cgi script.
basically how can i make use of a for loop to parse the variables, from the url http://someplace/cgi-bin/script.cgi?ip1=xxx.xxx.xxx.xxx&hn1=blah&ip2=xxx.xxx.xxx.xxx&hn2=blah&ip3=xxx.xxx.xxx.xxx&hn3=blah&totalkey=3 for ($1=1; $i <= $cgi->param('totalkey') ; $i++) { print "<li>$i - $cgi->param('ip$i') cgi->param('hn$i') "; } but output seems to be HASHblah ... -- ubergoonz