I have content between an <a> tag and I want to pass its content into a variable on the next page when it is clicked.
<a class="stuff" href="process.php"> Content One </a>
<a class="stuff" href="process.php"> Content Two </a>
<a class="stuff" href="process.php"> Content Three </a>
So if the middle link was clicked, the value passed to a variable in process.php would be Content Two. Can anyone help me out with that? I’m a little new to php.
Another option would be to use Jquery. You could disable the default action for clicking a link. You can then use javascript to redirect to the page intended with the GET variable automatically added on.