<?php if(isset($_POST[c'])){ echo $_POST['c']; } ?> <form method="post" action=""> <input type="checkbox" name="c"/> <input type="text" name="c"/> <input type="submit"/> </form>