"Zentara" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Sun,  2 Mar 2003 10:50:39 -0600, [EMAIL PROTECTED] (David
> Gilden) wrote:
>
> >Hello,
> >
> >I am not understanding why I am getting strange data from the my CGI.
> >Please point out what I have done wrong.
> >Thanks
> >Dave Gilden
>
> >See the result at, you have to 'order' on item to see the problem.
> ><http://www.coraconnection.com/paul_s/pages/catalog.html>
>
<snip />
>
> You might want to try assigning a variable name to param("quantity")
> first, before you set up the table. I don't know why, but sometimes
> the scripts don't like it any other way. I've run into this type of
> thing before, and just take the easy way out, and assign a variable.

This is not true at all.

> $quantity= param("quantity")
> print  "<td>", $quantity, "</td><td>\$Price goes here</td>\n";
>
> Otherwise, give more explanation of what your problem is.

If you look at the html source, there are multiple input fields are named
"quanity". You need a way of indexing your quanity fields so you know which
value of the array to fetch while looping through the selected items.

Not really a perl problem, check out the CGI specifications and perldoc -m
CGI

Todd W.



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to