Passing variables with a href hyperlinks

From: Date: Fri, 25 Apr 2003 23:54:02 +0000
Subject: Passing variables with a href hyperlinks
Groups: php.general 
Request: Send a blank email to php-general+get-145323@lists.php.net to get a copy of this message
Hiya Im having troubles sending a page with a variable. I have tried numerous ways suggested by forums. Now its driving me mad. The situation: I have a page with a table where there is a column bugid. In the browser I can see all the bugids as hyperlinks which directs to view_page.php. Now when I press on the link It goes to the page but without the variable bugid....so there is no way of knowing which bugid I clicked on. this is the link that creates all the bugid as links: <a href=\"view_bug.php\">" . $row['bugid'] . "</a></font></td> now to get the variable bugid which has been selected I assume I need to use a question mark. <a href=\"view_bug.php?\">" . $row['bugid'] . "</a></font></td> now I want the bugid so put in: <a href=\"view_bug.php?bugid=$_GET['bugid']\">" . $row['bugid'] . "</a></font></td> But this doesnt return anything in the URL. If this worked I would expect to see something like this in the url view_bug.php?bugid="0000001" I think the problem is something to do with $row['bugid']...is there anyway I can GET what is stored in this? Any help would be very appreciated _________________________________________________________________ It's fast, it's easy and it's free. Get MSN Messenger today! http://www.msn.co.uk/messenger

« previous php.general (#145323) next »