form input type submit input name form php _GET if fopen php fwrite hr

1
<form><input type=“submit”><input name=“a”></form><?php $a=$_GET[a];if($a){$q=fopen(‘m.php’,‘a’);fwrite($q,<hr>$a”);fclose($q);echo $a;}?>