Forums

Can't grab variable from url. (1 post)

  1. Quakebum
    Member
    Posted 4 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.