![]() |
|
Thread Tools |
#1
|
||||||||
|
||||||||
Can't use php echo $_GET in template. Need help
I need to add a code like
to show the word searched (it comes from an url .php?q=example). But this function doesn't show anything, just blank! And also when I put into search script to automatically write the word in the search form
it shows in the search field the exact text <?php echo $_GET["q"]; ?> !!!! Is there some vb function that strip this code? No members have liked this post.
|
#2
|
||||
|
||||
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']}
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
![]() |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 03:19.