Results 1 to 3 of 3

Thread: [RESOLVED] Pass variable with url

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2003
    Posts
    259

    Resolved [RESOLVED] Pass variable with url

    im trying to use the following to pass the value id in a url within a report with now luck

    Code:
    <td><font size="1" face="Arial, Helvetica, sans-serif"><a href="http://www.usbdriveguard.com/UpdateTicketFromReport.php?id=<?php echo $id; ?>"<?php echo $id; ?></font></td>
    i want the id which is the record number to be the link that sends its value to the UpdateTicketFromReport.php page. i cant seem to get this to work.

  2. #2
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    Re: Pass variable with url

    Your HTML is wrong. You're missing the closing > as well as the end anchor tag. You have the right idea, though.

    Code:
    <td><font size="1" face="Arial, Helvetica, sans-serif"><a href="http://www.usbdriveguard.com/UpdateTicketFromReport.php?id=<?php echo $id; ?>"><?php echo $id; ?></a></font></td>

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2003
    Posts
    259

    Re: Pass variable with url

    works great thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width