Home > Archive > PERL Beginners > July 2006 > CGI question on param
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
CGI question on param
|
|
| Mike Martin 2006-07-07, 6:57 pm |
| Does anyone know if there is any way to split the param list returned
by CGI.pm by record ie:
I have an input form which is populated from a DB query which can have
unlimited numbers of records.
When the parameters come in the individual params are split, but not
the lines for each form.
Is there any character etc which marks the end of each form record
example
form has
record1
id.id fname.id lname.id
record2
id.id fname.id lname.id
this comes in as a long list of params and I would like to be be able
to split at the records.
any ideas appreciated
| |
| Mr. Shawn H. Corey 2006-07-07, 6:57 pm |
| Mike Martin wrote:
> Does anyone know if there is any way to split the param list returned
> by CGI.pm by record ie:
>
> I have an input form which is populated from a DB query which can have
> unlimited numbers of records.
>
It would be easier to answer your question if you supplied the FORM tag
and three records to go with it.
--
__END__
Just my 0.00000002 million dollars worth,
--- Shawn
"For the things we have to learn before we can do them, we learn by
doing them."
Aristotle
* Perl tutorials at http://perlmonks.org/?node=Tutorials
* A searchable perldoc is at http://perldoc.perl.org/
| |
| Paul Lalli 2006-07-07, 6:57 pm |
| Mike Martin wrote:
> Does anyone know if there is any way to split the param list returned
> by CGI.pm by record ie:
There is no such thing as a "record" in a CGI parameter list.
> I have an input form which is populated from a DB query which can have
> unlimited numbers of records.
There is no such thing as "records" in a form. There is no possibility
of there being "unlimited" input fields in a form (yes, you can use
javascript to produce an arbitrarily large number of inputs, but they
are by no means "unlimited").
> When the parameters come in the individual params are split, but not
> the lines for each form.
There is no such thing as "lines for each form". What do you mean by
this?
> Is there any character etc which marks the end of each form record
There is no such thing as a "form record"
> example
>
> form has
>
> record1
> id.id fname.id lname.id
> record2
> id.id fname.id lname.id
No form has anything of the sort. Forms have input tags. Inputs have
types, names, and values.
> this comes in as a long list of params and I would like to be be able
> to split at the records.
There are no records. You're using terminology that makes no sense for
your problem domain. Please post a short-but-complete script and html
snippet that demonstrates precisely what you're tyring to do.
Paul Lalli
|
|
|
|
|