Jump to content

Basic Hyperlink with URL Parameter - ?recordID= (Nothing there)


yandoo

Recommended Posts

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 :)

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.