Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Link from dynamic data as URL variable

New Here ,
Sep 25, 2010 Sep 25, 2010

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

TOPICS
Server side applications
500
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Deleted User
Sep 25, 2010 Sep 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>

Translate
Guest
Sep 25, 2010 Sep 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>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 25, 2010 Sep 25, 2010
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines