<?php
$value = 'yes';
echo "<input type='checkbox' name='subscribe' value='yes'/>Subscribe?";
if(isset($_POST['subscribe'])){ if($_POST['subscribe'] == $value){
$subscribed = true;
}else{
$subscribed = false;
print 'Invalid checkbox value submiited.';
}
} else {
$subscribed = false;}
if ($subscribed){
print 'You Are Subscribed';
}else{
print 'You Are Not Subscribed';}
?>
PD9waHAKJHZhbHVlID0gJ3llcyc7CmVjaG8gIjxpbnB1dCB0eXBlPSdjaGVja2JveCcgbmFtZT0nc3Vic2NyaWJlJyB2YWx1ZT0neWVzJy8+U3Vic2NyaWJlPyI7CmlmKGlzc2V0KCRfUE9TVFsnc3Vic2NyaWJlJ10pKXsKCWlmKCRfUE9TVFsnc3Vic2NyaWJlJ10gPT0gJHZhbHVlKXsKJHN1YnNjcmliZWQgPSB0cnVlOyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCn1lbHNlewoJJHN1YnNjcmliZWQgPSBmYWxzZTsKCXByaW50ICdJbnZhbGlkIGNoZWNrYm94IHZhbHVlIHN1Ym1paXRlZC4nOwp9Cn0gZWxzZSB7Cgkkc3Vic2NyaWJlZCA9IGZhbHNlO30KaWYgKCRzdWJzY3JpYmVkKXsKcHJpbnQgJ1lvdSBBcmUgU3Vic2NyaWJlZCc7Cn1lbHNlewpwcmludCAnWW91IEFyZSBOb3QgU3Vic2NyaWJlZCc7fQo/Pg==