i have this checkbox input in my form
<input name='new' type='checkbox' value='0' />
the column new in my database is TINYINT based on the value of the checkbox , i want to display a div with a class if the value is 1 so i implement this code
if(isset($_POST[$URL['new']])
&& isset($_POST[$URL['new']]) == 1)
{
echo '<div class="premiere">Premiere</div>';
}
everything seems working fine , there's no error,warnings and notices.but the div didnot display in the page . what is wrong with the code and how i can fix it? thanks
$URL['new']?$_POST["new"]is enough$_POST[$URL['new']]if you need more help let us know what you really going to do.