Can’t grab variable from url.
-
Here’s what I’m trying to do:
<?php
$kw = $_GET[‘kw’];
?>Somewhere on my template:
<? echo $kw; ?>
So, by typing: example.com/postblah/?kw=test
It would print “test” where I put the echo but it’s not printing it, could it be the permalinks?
The topic ‘Can’t grab variable from url.’ is closed to new replies.