xhtml - PHP sending text to a <input type="text"> -


how send information form block of php code , text area? can not find answer.

to print out text entered in textfield on next request assuming render same page (i.e. myform.php):

<?php   $fieldvalue = htmlentities($_post['myfield']); ?>  <form action="myform.php" method="post">   <label for="myfield">your textfield:</label>   <input type="text" name="myfield" id="myfield" value="<?php echo $fieldvalue; ?>" /> </form> 

Comments