how can i define a php variable using html but not as a form?
Build yourself a query string with a link:
<a href="index.php?my_variable=my_value">Link</a>
Remeber to use $_GET[var] with this method...