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 PostCould I suggest that you take a different route to this?
The comma separated list is a bit clunky.
Going bitwise may be useful:<input type="checkbox" name="choice[]" value="1" id="choice1" /> <label for="choice1">Choice 1</label> <input type="checkbox" name="choice[]" value="2" id="choice2" /> <label for="choice2">Choice 2</label> <input type="checkbox" name="choice[]" value="4" id="choice3" …
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.