Title: Can&#8217;t parse variable string from url.
Last modified: August 19, 2016

---

# Can’t parse variable string from url.

 *  [Quakebum](https://wordpress.org/support/users/quakebum/)
 * (@quakebum)
 * [18 years ago](https://wordpress.org/support/topic/cant-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)

 *  Thread Starter [Quakebum](https://wordpress.org/support/users/quakebum/)
 * (@quakebum)
 * [18 years ago](https://wordpress.org/support/topic/cant-parse-variable-string-from-url/#post-712762)
 * anyone?
 *  Thread Starter [Quakebum](https://wordpress.org/support/users/quakebum/)
 * (@quakebum)
 * [18 years ago](https://wordpress.org/support/topic/cant-parse-variable-string-from-url/#post-712825)
 * bump for myself
 *  Thread Starter [Quakebum](https://wordpress.org/support/users/quakebum/)
 * (@quakebum)
 * [18 years ago](https://wordpress.org/support/topic/cant-parse-variable-string-from-url/#post-712888)
 * hello?
 *  [husar](https://wordpress.org/support/users/husar/)
 * (@husar)
 * [18 years ago](https://wordpress.org/support/topic/cant-parse-variable-string-from-url/#post-713053)
 * This should work…
 * `$var = @$_GET['kw'];`

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Can’t parse variable string from url.’ is closed to new replies.

## Tags

 * [Parsing](https://wordpress.org/support/topic-tag/parsing/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 4 replies
 * 2 participants
 * Last reply from: [husar](https://wordpress.org/support/users/husar/)
 * Last activity: [18 years ago](https://wordpress.org/support/topic/cant-parse-variable-string-from-url/#post-713053)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
