Hi all, I hav a code that takes my table rows and displays as checkboxes in a registration form, When the form submits user checked values will be saved separated by comma's(,) in one column . In future the user need to edit his details means how to show that user checked check boxes as checked="true" , The editing form also same as registration from .
Any help much appreciated,,
mohamedasif18
0
Junior Poster in Training
Recommended Answers
Jump to PostIf you have a multiple-steps form, you could consider temporarily saving form information in a session. If you don't know which information your post data contains, you can print the post data on …
Jump to PostHm I'm still not sure what you mean, but if you for example have this checkbox
<input type="checkbox" name="imacheckbox" value="hello"/>
then $_POST will have the value "hello". Is that then what you mean?
Jump to PostTo create a radio button list (which allows only one option to be selected at a time, like in a <select>), you can create a list of radio buttons.
Instead of adding <option>s to the <select> you should just add <input type="radio">'s to your page.
<input …
Jump to PostYou could explode the comma separated string.
$array = explode(',', $comma_separated_string);
This would return an array. Then you could check for each checkbox if it's value is in the array, and if it is, check it? E.g.:
while(...) { if(in_array($value, $array) { // Make …
All 13 Replies
minitauros
151
Junior Poster
Featured Poster
mohamedasif18
0
Junior Poster in Training
minitauros
151
Junior Poster
Featured Poster
mohamedasif18
0
Junior Poster in Training
minitauros
151
Junior Poster
Featured Poster
mohamedasif18
0
Junior Poster in Training
minitauros
151
Junior Poster
Featured Poster
mohamedasif18
0
Junior Poster in Training
minitauros
151
Junior Poster
Featured Poster
mohamedasif18
0
Junior Poster in Training
minitauros
151
Junior Poster
Featured Poster
diafol
mohamedasif18
0
Junior Poster in Training
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.