<?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 submitted.';
}
}else{$subscribed = false;}
if($subscribed){
print 'You Are Subscribed.';}else{print 'You Are not Subscribed.';}
PD9waHAKJHZhbHVlID0gJ3llcyc7CmVjaG8gIjxpbnB1dCB0eXBlPSdjaGVja2JveCcgbmFtZT0nc3Vic2NyaWJlJyB2YWx1ZT0neWVzJy8+U3Vic2NyaWJlPyI7CmlmKGlzc2V0KCRfUE9TVFsnc3Vic2NyaWJlJ10pKXsKCWlmKCRfUE9TVFsnc3Vic2NyaWJlJ10gPT0gJHZhbHVlKXsKCQkkc3Vic2NyaWJlZCA9IHRydWU7Cgl9ZWxzZXsKCQkkc3Vic2NyaWJlZCA9IGZhbHNlOwoJCXByaW50ICdJbnZhbGlkIGNoZWNrYm94IHZhbHVlIHN1Ym1pdHRlZC4nOwoJfQp9ZWxzZXskc3Vic2NyaWJlZCA9IGZhbHNlO30KaWYoJHN1YnNjcmliZWQpewoJcHJpbnQgJ1lvdSBBcmUgU3Vic2NyaWJlZC4nO31lbHNle3ByaW50ICdZb3UgQXJlIG5vdCBTdWJzY3JpYmVkLic7fQ==