On Tue, Jul 31, 2001, Birgit Kellner wrote:
> --On Dienstag, 31. Juli 2001 08:13 -0400 "Jeff 'japhy/Marillion' Pinyan" 
> <[EMAIL PROTECTED]> wrote:
> 
> Thanks for the information. If it is indeed necessary to have unique 
> fields, I reckon I could just use the database key as a name of the input 
> field for the number of copies:
> <input type=text size=3 maxlength=3 name="$db_key">
> 
> For all I can tell, this works. Any ideas for further simplification?

I would think it's a perfect thingy for XML :-)
HTML forms are so bad for multi-valued fields !
you have to build a string like with your 'form'
<boolist>
 <book>
  <isbn>1</isbn>
  <author>Stephenson</author>
  <title>Treasure island</title>
  <price>12</price>
 </book>
 <book>
  <isbn>2</isbn>
  <author>Dickens</author>
  <title>Oliver Twist</title>
  <price>10</price>
 </book>
</booklist>

and then parse it :-) but I'm not proficient with the XML parser
<http://search.cpan.org/doc/MSERGEANT/AxKit-1.4/XML-Parser-2.30/Parser.pm>

but it would generate a tree easy to access for further processing.

Only drawback I see imeediately is the need for the browser to do some
processing (but quite simple) in some script langage to build the string.

-- 
Damien
        You can tune a piano, but you can't tuna fish.

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

Reply via email to