Skip to main content
Participating Frequently
September 25, 2010
Answered

Link from dynamic data as URL variable

  • September 25, 2010
  • 1 reply
  • 559 views

Hey everyone

I have a dynamic table displaying basic details on students. I would like to be able to make the contents of the ID cell into a hyperlink that then passes that ID as a URL variable in the link to a details page. As the cell is dynamic the ID will be different in each case.

Can anyone help with this?

Many thanks in advance

This topic has been closed for replies.
Correct answer

You didn't metnion your language but the concept is the same. Append the dynamic URL to a hyperlink syntax. php example below:

<a href="/page.php?id=<?php echo $your_recordset['id']; ?>">link</a>

1 reply

Correct answer
September 25, 2010

You didn't metnion your language but the concept is the same. Append the dynamic URL to a hyperlink syntax. php example below:

<a href="/page.php?id=<?php echo $your_recordset['id']; ?>">link</a>

Participating Frequently
September 25, 2010

Thanks very much! Sorry about not mentioning the language (it was PHP). This is spot on so thanks again