Welcome, Guest
  • Author Topic: How do I create a HTML link which will write to a variable?  (Read 1273 times)

    Jaylada

    • Seasoned Programmer
    • ***
    • Posts: 144
      • View Profile
      • Email
    With a known ID in the MySQL database, how to a create a link (i.e. http://etcetcetcetc#ID), where it will query the database based off that ID?

    Thanks

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    You can pass any parameter iun any back-end language trough GET and POST. The easiest way (POST), just append to the URL: http://somedomain.com/someScript.php?id=1234

    In this case, the PHP script cpuld retrive the value trogh GET array

    $_GET['id']

    Jorge

    Jaylada

    • Seasoned Programmer
    • ***
    • Posts: 144
      • View Profile
      • Email
    What is the syntax for Coldfusion?  I can't find it.

    Thank you

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    I don't use Coldfusion, should try in some Coldfusion board

    Jorge