Jump to content

Not sure how to handle this, naming checkbox groups


TheHeretic

Recommended Posts

Okay have a mysql file which is basically key, description, and four boolean fields.

 

When i read through this file I want to display

 

Descriptio    chkbox1    chkbox2    chkbox3    chkbox4

 

repeating the line for each record in the table.

 

How do I name the grouped text boxes and pass their values to a post display php script?

 

Hope that makes some sort of sense.

sample ? or explain a bit more

 

Not sure what you mean by a sample there teng. A bit of research elicits I can sneak in arrays against the field and checkbox names, just having a play with that at the moment as it looks like the answer if I can work ouit the post form syntax :)

 

Unfort am at work and they quite unreasonably expect me to code in mircosoft technologies, what's that about :o Actually php leads to shorter code than this .net malarky and I haven't even got around to harnassing functions yet. Considering we habe unix servers galore why we don't use non M$ technologies is beyond me.....

yeah u can do it

 

i guess u should be having ids for each record....it will be simple

 

Description_id checkbox1_id checkbox2_id checkbox3_id and so on...

 

and about retrieving the value.... just pass the id and u will be knowing the names i.e Description checkbox1.... so having the id it is easy retrieve the value also...hope u got what i am trying to explain

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.