For an auto-generated form I have the following order of fields:
savevalues
userid
productcode
PrintColour1_1 Colour1_1 Quantity_1
" " " "
" " " "
PrintColour1_5 Colour1_5 Quantity_5


I was hoping to get them from the request object by rows, but they come
out as the following (example values included):
savevalues = yes
userid = 4029
productcode = 46BN
PrintColour1_1 = Black
PrintColour1_2 =
PrintColour1_3 =
PrintColour1_4 =
PrintColour1_5 =
Colour1_1 = Red
Colour1_2 =
Colour1_3 =
Colour1_4 =
Colour1_5 =
Quantity_1 = 5
Quantity_2 =
Quantity_3 =
Quantity_4 =
Quantity_5 =

Is there any way of changing this order as I think it may make it easier
to process the fields (which can change according to what the original
form fields are.)

Thanks.
--
GIT Groupie : http://gitgroupie.timchuma.com
The Twits Give Me the Shits : http://twitsgivemetheshits.timchuma.com
My Photos : http://photos.timchuma.com
Hong Kong Movie Reviews: http://hkmovies.timchuma.com

Re: Is it possible to change the request order of fields on a form? by Steven

Steven
Mon Jun 21 20:50:43 CDT 2004

How are you getting the info from the database?

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!


"Tim Chmielewski" <chuma@dcsi.net.au> wrote in message
news:Xns9510739CBB217chumadcsinetau@130.133.1.4...
> For an auto-generated form I have the following order of fields:
> savevalues
> userid
> productcode
> PrintColour1_1 Colour1_1 Quantity_1
> " " " "
> " " " "
> PrintColour1_5 Colour1_5 Quantity_5
>
>
> I was hoping to get them from the request object by rows, but they come
> out as the following (example values included):
> savevalues = yes
> userid = 4029
> productcode = 46BN
> PrintColour1_1 = Black
> PrintColour1_2 =
> PrintColour1_3 =
> PrintColour1_4 =
> PrintColour1_5 =
> Colour1_1 = Red
> Colour1_2 =
> Colour1_3 =
> Colour1_4 =
> Colour1_5 =
> Quantity_1 = 5
> Quantity_2 =
> Quantity_3 =
> Quantity_4 =
> Quantity_5 =
>
> Is there any way of changing this order as I think it may make it easier
> to process the fields (which can change according to what the original
> form fields are.)
>
> Thanks.
> --
> GIT Groupie : http://gitgroupie.timchuma.com
> The Twits Give Me the Shits : http://twitsgivemetheshits.timchuma.com
> My Photos : http://photos.timchuma.com
> Hong Kong Movie Reviews: http://hkmovies.timchuma.com



Re: Is it possible to change the request order of fields on a form? by Tim

Tim
Mon Jun 21 21:29:52 CDT 2004

"Steven Burn" <pvt@noyb.com> wrote in news:udecCu$VEHA.4064
@TK2MSFTNGP11.phx.gbl:

> How are you getting the info from the database?
>
Selected products have a flag on their record that signifies they require
extra fields on the order for more information.

The names of these extra fields are stored in a seperate table that is
looped through to build a unique form that has the input fields required
for that product.

When I work out how to get the fields from the Request.Form object I will
loop through the "Extra fields" table to build an INSERT query that will
insert the data into another table (which has all possible fields that
are required.)

Thanks.

--
GIT Groupie : http://gitgroupie.timchuma.com
The Twits Give Me the Shits : http://twitsgivemetheshits.timchuma.com
My Photos : http://photos.timchuma.com
Hong Kong Movie Reviews: http://hkmovies.timchuma.com

Re: Is it possible to change the request order of fields on a form? by jeff

jeff
Tue Jun 22 09:40:53 CDT 2004

On 22 Jun 2004 02:29:52 GMT, Tim Chmielewski <chuma@dcsi.net.au>
wrote:

>"Steven Burn" <pvt@noyb.com> wrote in news:udecCu$VEHA.4064
>@TK2MSFTNGP11.phx.gbl:
>
>> How are you getting the info from the database?
>>
>Selected products have a flag on their record that signifies they require
>extra fields on the order for more information.
>
>The names of these extra fields are stored in a seperate table that is
>looped through to build a unique form that has the input fields required
>for that product.
>
>When I work out how to get the fields from the Request.Form object I will
>loop through the "Extra fields" table to build an INSERT query that will
>insert the data into another table (which has all possible fields that
>are required.)

Name your fields and build your query based on the names.

Jeff