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,,
If 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 your screen as follows:
This will print all the data the user has submitted through a post on your screen. It will also contain the values of your checkboxes, in case you need to check what those values are.
Hi minitauros, Sry for my english, My need is, When we edit some form means first we select the data and display that to text boxes and edit process will be done, Now how to represent that by using check boxes, i am trying to figure out the check boxes as checked if the user checked that in the registration form
Now when the form is submitted, $_POST will have the value of the radio input that was selected. In case you're using checkboxes, which allows multiple items to be selected, the code process should be the same. For example:
When the user submits this form, there will be an array called $_POST in PHP. If for example boxes 1 and 2 were checked, it will contain $_POST = city1, and $_POST = city2. Was this then what you meant? :)