Appending a get request to URL and echoing it in post?
-
I’ve tried to do this by putting this in the header:
<?
$keywords = $_GET[’keywords’];
?>and then
<? echo $keywords;?> in the title, and in the actual post using the PHP-exec plugin (put it in the title just to make sure it wasn’t a problem with the plugin).
The $keywords variable is empty though, even when I go to:
myurl.com/?page_id=5&keywords=test
I currently have the wordpress permalink set to default.
Any ideas? Thanks.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Appending a get request to URL and echoing it in post?’ is closed to new replies.