php - Return textbox value after press cancel button -


i have code this:

<?php     $name = "edward";     $country = "indonesia"; ?>  <form id="bio">     <input type="text" id="name" value="<?= $name ?>">     <input type="text" id="country" value="<?= $country?>"> </form>  <button class="clear">cancel</button> 

so when first load, textboxes filled according variable defined before. change / type in both textbox name or country. how make text box value value before (textbox name filled edward, , country filled indonesia - both filled it's default value) when press cancel button ? helping :)

in html5 use

<form> <input type="text" id="name" placeholder="<?= $name ?>"> <input type="text" id="country" placeholder="<?= $country?>"> <button class="clear" type="reset">cancel</button> </form> 

or use javascript


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -