[resolved] Links Passing Variables

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ibanez270dx
Forum Commoner
Posts: 74
Joined: Thu Jul 27, 2006 12:06 pm
Location: Everywhere, California

[resolved] Links Passing Variables

Post 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
Last edited by ibanez270dx on Tue Aug 08, 2006 10:43 am, edited 2 times in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

lose the single quotes and make them

Code: Select all

<?php echo $dwntime_month; ?>
possibly.
ibanez270dx
Forum Commoner
Posts: 74
Joined: Thu Jul 27, 2006 12:06 pm
Location: Everywhere, California

Post by ibanez270dx »

oh yeah! I feel like an idiot... its early... I'm at work...

Thanks!
Post Reply