Jump to content

[SOLVED] Checkbox into PHP. Help Please???


liam1412

Recommended Posts

Thsi si the code for my checkbox









[code]<input class="input" type="checkbox" name="default" value="default" />[/code]
and here is my bit of code which should change the variable default from 0 to 1 if the box is ticked.

[code]if(isset($_POST['default'])){

if($default == 'default'){
$default = '1';
}
}[/code]





Link to comment
https://forums.phpfreaks.com/topic/36353-solved-checkbox-into-php-help-please/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.