Hi. I'm trying to make a small script for my site where the user would go to the page, lets say, http://example.com/test.php?p=22. From there, a script would read the 'p' variable, and result with a hyperlink going to http://example.com/diffdir/22.exe. So far, this is what I have coded:
<?php
$test = $HTTP_GET_VARS['p'];
?>
<a href="diffdir/".$test.">Test</a>
Now, I would think that inserthing that $test
into the <a href>
would do the trick, but sadly the hyperlink only leads to http://example.com/diffdir. Would anyone mind pinpointing what I am doing wrong?