Page 1 of 1

[Solved]:problem with php checks

Posted: Wed Jul 11, 2012 5:43 am
by mekha
hi guys,
how can i make this:?
if the values for example in checkbox is null,i mean if i didnt choose any thing,and i did a submit,how can i prevent mysql to insert something in the table?

Re: problem with php checks

Posted: Wed Jul 11, 2012 5:51 am
by Celauran

Code: Select all

if (isset($_POST['checkboxname']))
{
    // query goes here
}
Or did I misunderstand your question?

Re: problem with php checks

Posted: Wed Jul 11, 2012 11:51 am
by mekha
Oh, thank u man !