in reply to Handling Dynamic URL Parameters

Another possibility is to make the catalog number the field name, and the quantity its value.

After Compline,
Zaxo

Replies are listed 'Best First'.
Re: Re: Handling Dynamic URL Parameters
by the_Don (Scribe) on Sep 13, 2002 at 16:15 UTC

    make the catalog number the field name, and the quantity its value

    How would I get the parameter name?

    And my examples are not sufficient because there will be more than just two fields defining a line. Right now there are five, but that may increase.

    the_Don
    ...making offers others can't rufuse.

      How would I get the parameter name?

      if you're using CGI.pm, you can get the parameter list by calling the param method without arguments:
      my $q = new CGI; my @params = $q->param();

      FWIW, I'd go with the  num_of_lines=5&item_num_1=1234&item_num_2=4562... approach.

      -- Dan