in reply to Input arrays to CGI
I'm going to assume that you are already using CGI, as you mention @items = param("item");. I don't know anything about PHP, so this may be a reference to a PHP function of the same (fairly obvious)name.
Anyway, going ahead with my assumption, if you are using CGI already, and the above quoted line doesn't work, then there is something wrong as (from perlman:lib:CGI)
FETCHING THE VALUE OR VALUES OF A SINGLE NAMED PARAMETER: @values = $query->param('foo'); -or- $value = $query->param('foo'); Pass the param() method a single argument to fetch the value of the na +med parameter. If the parameter is multivalued (e.g. from multiple se +lections in a scrolling list), you can ask to receive an array. Other +wise the method will return a single value. If a value is not given in the query string, as in the queries ``name1 +=&name2='' or ``name1&name2'', it will be returned as an empty string +. This feature is new in 2.63.
If this is the case, you should post a larger section of your code and possibly the html it is processing (don't forget your <CODE></CODE> tags and possibly <READMORE></READMORE> tags) and the girls and guys here will have a better chance at being able to help you.
|
|---|