I have am trying to pass the value of a label into the php.
how should i do that?
My HTML looks like:
<form action='unsubscribe.php' method='get'>
<label for='zee@server.com'>zee@server.com</label>
<input type='submit' value='Unsubscribe me'>
</form>
How can i get the value of this label passed into my unsubscribe.php?
Best
Zeeshan
By using the
<input type="hidden" ... />tag:If you are going to use
<form method="get" ...>you might as well just make a url:Or with php (note the urlencode):