integrating $_GET into search.php
-
One year user, first time poster ??
Anyway, so I’m building my first template and want to include the simple ability for the search engine to return the original query to the searcher, instead of just “Not Found” which is the default.
So, I have this thus far:
<div class="post">
<h2><?php _e('I\'m sorry, the query '$_GET["s"];' could not be found'); ?></h2>
</div>
I used “s” as the name because it looks like that’s what it is named in searchform.php – but yet, when I try testing it out, I get a: Parse error: syntax error, unexpected T_VARIABLE
Can anyone let me know what little thing I’m missing? ?? thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘integrating $_GET into search.php’ is closed to new replies.