Return to Snippet

Revision: 39527
at January 18, 2011 04:26 by shinokada


Initial Code
// page['special'] has 0, 1 or 2
// 1 is home page, 2 is not displayed

$specials=array('Is Home Page','Does not appear in navigation');
for($i=0;$i<count($specials);++$i){
	if($specials[$i]!=''){
		echo '<input type="checkbox" name="special[',$i,']"';
		if($page['special']&pow(2,$i))echo ' checked="checked"';
		echo ' />',$specials[$i],'<br />';
	}

Initial URL


Initial Description


Initial Title
checkbox checked PHP from webworks

Initial Tags


Initial Language
PHP