Re: Input form question.
by "Frank Boumphrey" <bckman(at)ix.netcom.com>
|
| Date: |
Thu, 28 Nov 2002 01:51:30 -0500 |
| To: |
"Floyd Baker" <fbaker(at)olm1.com>, <hwg-techniques(at)hwg.org> |
| References: |
4ax |
| |
todo: View
Thread,
Original
|
|
Floyd,
overload them by giving them all the same name, and then pass them as an
array to your processor.
the details of how to do this vary as to whether yoyu are using PHP, ASP or
CGI, but it is doable in all of these methods.
Frank
----- Original Message -----
From: "Floyd Baker" <fbaker(at)olm1.com>
To: <hwg-techniques(at)hwg.org>
Sent: Wednesday, November 27, 2002 12:00 PM
Subject: Input form question.
>
>
> Hello HTML people.
>
> I am up against another mental block. I'm trying to build an x-y
> array of data input fields and then send them recursive to be used
> further down the program.
>
> I can do this fine with a fixed number of columns and rows of user
> input but I cannot figure out how to make this happen using a variable
> number of columns. I'm a complete array amateur and would appreciate
> a little assistance...
>
> I want it to look something like this:
>
> Name Temp Time Offset Etc. As needed...
> process 1 [input] [input] [input] [input] [inputs]
> process 2 [input] [input] [input] [input] [inputs]
> process 3 [input] [input] [input] [input] [inputs]
> process 4 [input] [input] [input] [input] [inputs]
>
> Right now, for the three *basic* columns, I have the lines below in a
> 'while' loop.
>
> <INPUT TYPE='text' NAME='temp[]' VALUE='$temp' SIZE='10'
> MAXLENGTH='10'>
> <INPUT TYPE='text' NAME='time[]' VALUE='$time' SIZE='10'
> MAXLENGTH='10'>
> <INPUT TYPE='text' NAME='offs[]' VALUE='$offs' SIZE='10'
> MAXLENGTH='10'>
>
> But when it comes to adding the additional columns that a user
> determines are needed, I am lost. They might want to add 0, or 4, or
> 10 additional items... I would like only the needed number of usable
> input columns be on the form and identified for what they contain, and
> then to pass them to the next page (using php, btw).
>
> Many thanks in advance.
>
> Floyd
>
>
> --
>
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.