Answers for "how to keep some value on input field"

PHP
0

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" />
Posted by: Guest on August-14-2021

Code answers related to "how to keep some value on input field"

Browse Popular Code Answers by Language