Anyone know if there's a way to set a PHP variable (maybe using JS) in an anchor tag? I need to pass a snippet of info (one word) from one page to another, and I don't want to use a form. It's just a plain html anchor tag.
Hmmm, now that I think of it, will the $variable even stay set after the new page loads?
You don't need any javascript to pass a variable...
simply create the anchor as
<a href=/page.php?variable=value>Text to click</a>
page.php then simply need to look for the variable $_GET['variable'] or $HTTP_GET_VARS['variable']
DOH! I forgot all about GET. Thanks.