Passing of Variable via Get method not working?

Index.php code

[php]echo “

<a href=Summary.php?id=$Torrentname>$Torrentname”;[/php]

Appears in address header

http://localhost/Summary.php?id=Ironman.XviD.720p-XvAvX

on summary.php I get back Id by

[php]$id = $_GET[‘id’];[/php]
[php]echo $id;[/php]

However id is not echoed?

Any ideas?

The code looks fine, you may need to post more snippets of your code to see if there is something else affecting the output.

Try [php]$_REQUEST['id][/php] maybe.

Sponsor our Newsletter | Privacy Policy | Terms of Service