if (isset($_POST['mage'])){$magic= $_POST['mage'];} echo '<input type="text" name="mage" value="'.$magic.'" />';