Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 246
  • Last Modified:

How to add variables to links ?

Hi,

Passing a variable say pid via www.test.com/plan.php?pid=1

And I can use the Print function to show this further down the html page, but how do I insert this variable into links on the page ?

href="https://www.test.com/cgi-bin/purchase.2c?product_id=$pid&another_variable=$another" for example, although that dont work lol
0
MirageSF
Asked:
MirageSF
  • 2
1 Solution
 
us111Commented:
<?print $_GET['pid']?>
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now