Skip to content

PHP code snippet – How to keep some value on input field?

//set the value
//if the method you use is GET
<input type="text" value="<?php echo htmlspecialchars($_GET['identifier']); ?>" name="identifier" />

//if the method you use is POST
<input type="text" value="<?php echo htmlspecialchars($_POST['identifier']); ?>" name="identifier" />
See also  Python code snippet - How to export to a google sheet ?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.