Page 1 of 1

[resolved] Links Passing Variables

Posted: Tue Aug 08, 2006 10:27 am
by ibanez270dx
Hi,
I know I created a similar sounding topic yesterday, but this is a little different. Check it out: I've got 2 variables - $dwntime_month and $dwntime_year. I want them to be passed on in a link. To the best of my knowledge, it should look like this:

Code: Select all

<a href="export.php?w=1&month='$dwntime_month'&year='$dwntime_year'" name="2excel" class="print"><img src="images/excel.gif" border="0"> <b>Export to Excel</b></a>
However, it never actually inserts the values in there. When you hover over the link, the link says:

http://www....blah blah blah..../export.php?w=1&month='$dwntime_month'&year='$dwntime_year'

I've tried it with and without the single quotes... Anybody have any suggestions?

Thanks,
- Jeff

Posted: Tue Aug 08, 2006 10:33 am
by feyd
lose the single quotes and make them

Code: Select all

<?php echo $dwntime_month; ?>
possibly.

Posted: Tue Aug 08, 2006 10:43 am
by ibanez270dx
oh yeah! I feel like an idiot... its early... I'm at work...

Thanks!