简体   繁体   中英

Select through check box and change the value from Radio button in table

i am new to php, i need help

i have table in Mysql as below

enter image description here

and above the table i have three radio button

<div>
    
    <label class="btn btn-primary" for="btn-check">Active</label>
    <label class="btn btn-primary" for="btn-check">Inactive</label>
    <label class="btn btn-primary" for="btn-check">Closed</label>
</div>

enter image description here

now what i have to do, i will select any one/muyltiple entry from table through check box and click on any of radio button (here selecting Active) so the value in Status column change to Active in data base and display here also. i need that codes, please help me.

You need to assign value="Active" value="Inactive" value="Closed" in the button then try to submit.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM