I want to write a code that will view all the records within a table and assign a checkbox for each record.. the check box will be used for deleting the records just like in emails. can anyone help me on this?
bornok15
3
Junior Poster in Training
Recommended Answers
Jump to Posthi
…
try this example:
suppose you want following to be done:
[]record1
[]record2
here [] is check box
then do following to get above:
1.suppose you have two variable $rec1 and $rec2 which contains data to be printed along with check box,
$rec1="record1" ;
$rec2="record2";
2.prepare a $rspString like following:
Jump to PostHi,
Even though it is a fairly advanced script you could try looking at this post:http://www.daniweb.com/forums/thread111225.html
or you can do a search on checkboxes and find a few additional examples
Jump to Postjust assign a checkbox with a different name to each one with id value as the checkbox value. then use the foreach() statement to loop through the post results and regex the key to make sure it belongs to that set of input elements. after that take the value from …
All 11 Replies
DangerDev
107
Posting Pro in Training
JeniF
0
Junior Poster in Training
somedude3488
228
Nearly a Posting Virtuoso
bornok15
3
Junior Poster in Training
bornok15
3
Junior Poster in Training
somedude3488
228
Nearly a Posting Virtuoso
somedude3488
228
Nearly a Posting Virtuoso
bornok15
3
Junior Poster in Training
somedude3488
228
Nearly a Posting Virtuoso
bornok15
3
Junior Poster in Training
somedude3488
228
Nearly a Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.