Passing variable through the URL
From: Aaron Jackson (aaronljackson_at_ntlworld.com)
Date: 07/27/04
- Next message: Markus Ernst: "Re: Create a PHP Page Dynamically"
- Previous message: Duyet The Vo: "Re: GUI PHP Editor"
- Next in thread: W. Paulisse [ IMC ]: "Re: Passing variable through the URL"
- Reply: W. Paulisse [ IMC ]: "Re: Passing variable through the URL"
- Reply: Aaron Jackson: "Re: Passing variable through the URL"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 27 Jul 2004 10:10:12 GMT
Trying all day now to try and crack this but it just refuses to work, used
the following methods and many more:
$newsid = $rows[0];
echo "<a href=\"comments.php?nid=".$_GET[rows[0]]."\">Comments</a><br>";
echo "<a href=\"comments.php?nid=".$_GET[newsid]."\">Comments</a><br>";
echo "<a href=\"comments.php?nid=1\">Comments ID</a><br>";
The final one does work, yet this is no good since the value has to be done
automatically and not manually. This is really starting to get to me, the
data is being read from the database fine since the news is being displayed
fine.
Any ideas anyone?
Thanks for reading
--Aaron
- Next message: Markus Ernst: "Re: Create a PHP Page Dynamically"
- Previous message: Duyet The Vo: "Re: GUI PHP Editor"
- Next in thread: W. Paulisse [ IMC ]: "Re: Passing variable through the URL"
- Reply: W. Paulisse [ IMC ]: "Re: Passing variable through the URL"
- Reply: Aaron Jackson: "Re: Passing variable through the URL"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|