I was playing with metaboxes following one tutorial. I came to a point where I could add any code and it would be displayed in the metabox. I tried echoing something and it was ok. Then I wanted to set a select form that store user's choice.
<form name="ss_on_off_form_submit" method="post" action="">
<input type="hidden" name="ss_on_off_form_submit" value="Y">
<select name="ss_on_off" id="ss_on_off">
<option value="Off">Off</option>
<option value="On">On</option>
</select>
<p>
<input class="button-primary" type="submit" name="ss_on_off_submit" value="Save" />
</p>
</form>
<?php
if( isset( $_POST['ss_on_off_form_submitt'] ) ) {
echo '7.<hr />';}
The same code used in plain php environment is working as expected. I am sorry to bother the community with such easy question, but why the metabox doesn't render php as supposed?