in reply to Re: textarea entries
in thread textarea entries

Thank you for your replies... I want a simple textarea where the users can paste in many serial numbers (either in a column or row with a space/s sepating them). They click submit and the CGI takes each entry as a separate entity instead of one long one. I admit it I am a CGI rookie here.... I need a snipet or 2 to see what you are saying. If I show you what I have for the current code to accept the <input type text> entries. Could you suggest the best method to read a textarea instead of multiple text fields. Feel free to alter this code . Thank you in advance
#!/usr/bin/perl if ($ENV{'REQUEST_METHOD'} eq 'POST') { read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'}); @pairs = split(/&/, $buffer); foreach $pair (@pairs) { ($name, $value) = split(/=/, $pair); $value =~ tr/+/ /; $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg; $FORM{$name} = $value; } &process; } #The following displays barcode sub process { ($name = $FORM{name});
more html & print script would be below here Once again I thank you gc