yandoo Posted February 13, 2008 Share Posted February 13, 2008 Hi there, I should totally know this as i have created many hyperlinks passing url parameters before..... I have this code for the hyperlink : <a href="stage4.php?recordID=<?php echo $row_animal['animalID']; ?>">continue</a><?php echo $row_animal['AnimalID']; ?> Please note that i added the extra <?php echo $row_animal['AnimalID']; ?> after the </a> to prove the query woks and it does it echos the relevant record number next to the hyperlink.... When i test the page and hover over the hyperlink it doesnt show the record ID bit e.g. stage4.php?recordID= It doesnt say the record ID parameter??? On the stage 4 page i have created the query that filters results that are = url parameter... But its not even geting that far as the url parameter is not shown??? What the hell am i missing here?? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/90886-basic-hyperlink-with-url-parameter-recordid-nothing-there/ Share on other sites More sharing options...
yandoo Posted February 13, 2008 Author Share Posted February 13, 2008 Hi there, Managed to fixz half of it.. i was just being a plum ! made sure animalID was acutally AnimalID...and it now displays record number when hovering over hyperlink.... Now tho when i go to page 4...no records are displayed at all, even tho it hyperlink now clearly says the url parameter.... hmmm... why could that be?? Thank you p.s. hope resolved topic is back up Quote Link to comment https://forums.phpfreaks.com/topic/90886-basic-hyperlink-with-url-parameter-recordid-nothing-there/#findComment-465780 Share on other sites More sharing options...
yandoo Posted February 13, 2008 Author Share Posted February 13, 2008 Hi there, Yet again ive just been silly!!! For those of you noobs who may ever run into silly problem like this.... On the query onthe 2nd page i had AnimalID = URL parameter AnimalID......in reality i should have put AnimalID = URL parameter recordID. Hope this helps Thanks Quote Link to comment https://forums.phpfreaks.com/topic/90886-basic-hyperlink-with-url-parameter-recordid-nothing-there/#findComment-465820 Share on other sites More sharing options...
haku Posted February 13, 2008 Share Posted February 13, 2008 Haha, nice to see you work it out. Interesting to see the process you went through in doing it! Quote Link to comment https://forums.phpfreaks.com/topic/90886-basic-hyperlink-with-url-parameter-recordid-nothing-there/#findComment-465830 Share on other sites More sharing options...
sasa Posted February 13, 2008 Share Posted February 13, 2008 try $AnimalID = $_GET['recordID']; Quote Link to comment https://forums.phpfreaks.com/topic/90886-basic-hyperlink-with-url-parameter-recordid-nothing-there/#findComment-465940 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.