How to Save Multiple Checkbox Values in Database in PHP

preview_player
Показать описание
Save Multiple checkbox values in the database using PHP. In this tutorial you will see that we have created a form and 5 checkboxes with a submit button.

When user click on the submit button our form will be submitted and multiple checked checkbox values will be posted to the page. Before saving the values to database we will Impload the array and create a String with comma separate.

Now we will save the multiple checkbox values in the database.

Рекомендации по теме
Комментарии
Автор

Simple tutorial that shows exactly what the title says without unnecessary bloat. Thank you!

BRIAREOS
Автор

I love this tutorial..., I hope my teacher watch your video :* thanks so much for the tutorial sir..

brendaogael
Автор

i have been watching tutorials for a week and now i can speek indian languages

kbw
Автор

Thank You Boss.. Thank You very much!!!

krishnapatel
Автор

In future please use Atom or visual studio in dark theme

abcdIsuru
Автор

Hi, great video.
how to use data from the database to make the form with multiple checkboxes?
to make a select in the database and use the selected data to make the form

ativoconsultores
Автор

what if I want to get unchecked boxes too? I use checkboxes and if checked = 1 and unchecked = 0. Its hard to make it work on an array of checkbox

TheTriangle
Автор

Can we insert all data in different rows not in single row? Like india in one row usa in 2 row and europe in 3rd row?

vipinsinghnegi
Автор

your tutorial is great, but my ears cannot handle it....

legendsgameplay
Автор

If checkbox is equal to Italy and if we want to come some text if checkbox is equal to Italy then what we need to do

sruthigopi
Автор

Please how can we insert each country into individual row, that is one country per record row instead adding all into one row with comma seperation as you just did???

mnwuzor
Автор

is there any way to leave the checkbox always marked after saving in the bank? And then clear saving in the bank again?

OPortaldeTolkien
Автор

great ! but how integrate the query if i had other fields in the table?, i did'nt know how :(

sss-ksyk
Автор

if I want to echo single value from this type of array values how can I do this??
do you have any tutorials?

moenulYT
Автор

how to save multiple checkbox values in database in codeginiter. tell

Kajal_Verma
Автор

pls use black back ground or black theam that is more visible than white

HimanshuVerma-rrww
Автор

Warning: mysqli::query(): invalid object or resource strategyClass in on line 7
what is this error means?

ahsanulhayati
Автор

Sir, how to fatch one country like usa from (India, USA, Australia) column name cvalues

itretro
Автор

sir would you help me how to retrieve student list by section or class
and send the source code

hussencomputertrainingcent
Автор

I'm having the same problem as Ahsanul Hayati95 even though I just copied your codes to test it. :(

Pls help

VJV