TheHeretic Posted September 21, 2007 Share Posted September 21, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/70098-not-sure-how-to-handle-this-naming-checkbox-groups/ Share on other sites More sharing options...
teng84 Posted September 21, 2007 Share Posted September 21, 2007 sample ? or explain a bit more Quote Link to comment https://forums.phpfreaks.com/topic/70098-not-sure-how-to-handle-this-naming-checkbox-groups/#findComment-352087 Share on other sites More sharing options...
TheHeretic Posted September 21, 2007 Author Share Posted September 21, 2007 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 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..... Quote Link to comment https://forums.phpfreaks.com/topic/70098-not-sure-how-to-handle-this-naming-checkbox-groups/#findComment-352145 Share on other sites More sharing options...
phpwonderkid Posted September 21, 2007 Share Posted September 21, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/70098-not-sure-how-to-handle-this-naming-checkbox-groups/#findComment-352198 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.