Make a link carry a variable without forms
Posted: Mon Aug 07, 2006 5:58 pm
Hi,
Just a quick question: How do I have a link (a simple "a href" deal) that carries on variables? More speicifically, my problem arises when I want my HTML link to load the page again and goto an isset thing in the PHP. Here is currently what I have, which doesn't work:
Any suggestions? I don't want to have to use forms...
Thanks,
- Jeff
Just a quick question: How do I have a link (a simple "a href" deal) that carries on variables? More speicifically, my problem arises when I want my HTML link to load the page again and goto an isset thing in the PHP. Here is currently what I have, which doesn't work:
Code: Select all
if(isset($_POST['2excel']))
{
blah blah blah
<td>
<a href="<?= $_SERVER['PHP_SELF'] ?>" name="2excel" class="print"><img src="images/excel.gif" border="0"> <b>Export to Excel</b></a>
</td>Thanks,
- Jeff