![]() |
Can't use php echo $_GET in template. Need help
I need to add a code like
PHP Code:
And also when I put into search script to automatically write the word in the search form PHP Code:
Is there some vb function that strip this code? |
You cannot add php to templates. You must put your php code into a plugin and then enter the results into the template. However, you should be able to just use the variable in the template. Try something like just {vb:raw $_GET['q']}
|
Thanks, it works!
|
All times are GMT. The time now is 08:21 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|