I have an HTML form and some PHP, but it always echo's "100 TEST" regardless of the case submitted. The default case works fine.
HTML:
<form class="page-search" action="page.php" method="post">
<input type="text" name="page" autofocus maxlength="3" placeholder="100" style="width: 50px;">
<input type="submit" style="visibility: hidden;">
</form>
PHP:
<?php
$pageid = isset($_POST['page']);
switch ($pageid) {
case '100':
echo '100 TEST';
break;
case '200':
echo '200 TEST';
break;
case '300':
echo '300 TEST';
break;
default:
echo 'DEFAULT';
break;
}
?>
Have I missed something really obvious? I'm kicking myself for needing to ask the question but can't seem to figure this one out!