I have a HTML text
that let user to enter value for searching ID.
<input name="sname" type="text" id="sname" value="<?=$sname?>">
I'm now adding a HTML button
to set the value of the text
to blank after clicking.
<input type="submit" name="bth_clear" id="bth_clear" value="Clear">
I did it in the php but it doesn't work. The value entered is still there. Any ways that I can do ?
<?php
if ($bth_clear) {
$sname="";
}
?>