Code for radio button

Where’s your form tag in the HTML and what’s the server side code in the page the form calls that takes the form content and loads it into the database?

Only the data for pack was not save the rest that i input was saved.

Thank you

You’re trying to save $_POST[“pack_setting”], but the radio buttons have the name ‘pack’.
They should be the same.

And you really should escape the posted data before sending it to MySQL.

You haven’t shown enough of the code to see what is happening - the selected radio button will be in $_POST[‘pack’] after the form is submitted. The only field your code shows is $_POST[“pack_setting”] and you don’t show the form field that comes from.

I change the $_POST[“pack_setting”] to $_POST[“pack”]

Thank you…it works