PHP beginners tutorial 46 - multiple checkboxes

preview_player
Показать описание
In this tutorial I show you a better way to retrieve data from a check box that allows for multiple check boxes to be ticked.

.
Follow me on Facebook:

Follow me on Twitter:

Don't forget to subscribe:

Donate on PayPal:

xclick&hosted_button_id=DM496T7CTUYAS Donate on PayPal:
Рекомендации по теме
Комментарии
Автор

wow it makes everything simpler. Thanks

shuleydripolink
Автор

Hello Quentin, I want to know if there is a way to put that whole array in some sort of database?

aleksandarivanovski
Автор

More More More... Faster Faster!!  Thanks guy!

TeddySlabs
Автор

Brother, can we save these values in tables in database, if so, how can we?
Please explain

bint-e-maryam
Автор

Obrigado pela ajuda. Na moral me salvou muito

Pedrooedrpziul
Автор

how do I select only one from multiple checkboxes ? Even in your last tutorial your were selecting both (YES and NO) at the same time ?

shahmirjadoon
Автор

How do you fix the error when you dont check anything?

juniorkane
Автор

when the user is not selecting any option the handler page gives me an error, is there a way of preventing that.

Gorrdo
Автор

give tutorial on how to fetch data that matches checkbox value....

dharmpalkumar
Автор

OK, question. How how fetch data with multiple checkboxes?
How to add an array into query?

Paturica
Автор

do you have tutorial video on how to insert data into phpMyAdmin using checkbox?

hauntedspear
Автор

Please use a better recording software! Make it in HD please

MapleSeaist
Автор

Hi Quentin,
I tried the above program as u explained, but dunno why its throwin error,
Can you please have a look into my code:

<?php

$food=$_POST['food'];
echo "you selected : <br>"
foreach($food as $k=>$v)
{
echo "$v<br>";
}
?>

AsgharHussein
Автор

Thank you Quentin,
         my foreach() loop doesnt work!!! I tried both ways but still no luck.

        echo 'You selected: <br/>';
        //$food = $_POST['food'];
            
        foreach($_POST['food'] as $key => $value){
            echo $value.'<br/>';
        }
I get this error:
---> Warning: Invalid argument supplied for foreach() in on line 22

skizotub
Автор

Seriously, everyone just shows you how to echo back these values. When the hell are you actually going to use php to echo? Show us how to actually process and package this information for server upload or email formatting.

sirdavidspagnolo
Автор

i have this fucking error....Notice: Undefined index: is the array which i need to use please help me i am disappointed from php cause of this error :/

reduxmusic
welcome to shbcf.ru