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

Link from dynamic data as URL variable

New Here ,
Sep 25, 2010 Sep 25, 2010

Copy link to clipboard

Copied

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

Views

498
Translate

Report

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>

Votes

Translate
Guest
Sep 25, 2010 Sep 25, 2010

Copy link to clipboard

Copied

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>

Votes

Translate

Report

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

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Report

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