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.

Link to comment
Share on other sites

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.....

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.