<input type="text" name="campo" value="<?php echo $texto; ?>"> <!-- o --> <?php echo "<input type=\"text\" name=\"campo\" value=\"$texto\">"; ?>