Can’t parse variable string 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?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Can’t parse variable string from url.’ is closed to new replies.