When searching something on a phpBB forum, you are currently sending a POST request.
Why not search with a GET request with the query in the url (ex. http://example.com/phpbb/search.php?q=hello%20world) - just like any search engine.
This way you will be able to make it easier for people to change their searches (sometimes i just modify the url directly instead of resubmitting...)
And people will be able to search your site directly from their browsers...
-> http://<domain>/phpbb/search.php?q={query}
Searching with GET
Forum rules
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.3.x. If you need support for phpBB 3.3.x please visit the 3.3.x Support Forum on phpbb.com.
If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.3.x. If you need support for phpBB 3.3.x please visit the 3.3.x Support Forum on phpbb.com.
If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
- Dragosvr92
- Registered User
- Posts: 624
- Joined: Tue May 31, 2011 12:08 pm
- Location: Romania
- Contact:
Re: Searching with GET
Interesting idea, but you might want to take care of the SEO detail, as the bots will tend to cache the search page, with each get variable.
Sooo.. add a index no follow for the search page, maybe.
Sooo.. add a index no follow for the search page, maybe.
Previous user: TheKiller
Avatar on Memberlist 1.0.3
Avatar on Memberlist 1.0.3
Re: Searching with GET
Use robots.txt.TheKiller wrote:Interesting idea, but you might want to take care of the SEO detail, as the bots will tend to cache the search page, with each get variable.
$ git commit -m "YOLO"
- A_Jelly_Doughnut
- Registered User
- Posts: 1780
- Joined: Wed Jun 04, 2003 4:23 pm
Re: Searching with GET
Please be more specific. search.php processes get requests without any problems, and in fact the form at search.php already uses method=get
A_Jelly_Doughnut
- nickvergessen
- Former Team Member
- Posts: 733
- Joined: Sun Oct 07, 2007 11:54 am
- Location: Stuttgart, Germany
- Contact:
Re: Searching with GET
Only quick-search (Includes search on viewforum and viewtopic) use get
Member of the Development-Team — No Support via PM
- A_Jelly_Doughnut
- Registered User
- Posts: 1780
- Joined: Wed Jun 04, 2003 4:23 pm
Re: Searching with GET
Not on this board... quoting from the source of search.php as generated on area51nickvergessen wrote:Only quick-search (Includes search on viewforum and viewtopic) use get
Code: Select all
<h2 class="solo">Search</h2>
<form method="get" action="./search.php">
<div class="panel">
<div class="inner"><span class="corners-top"><span></span></span>
<h3>Search query</h3>
A_Jelly_Doughnut
- nickvergessen
- Former Team Member
- Posts: 733
- Joined: Sun Oct 07, 2007 11:54 am
- Location: Stuttgart, Germany
- Contact:
Re: Searching with GET
Well atleast the quick search is sorry screwed the other one up
Member of the Development-Team — No Support via PM
- imkingdavid
- Registered User
- Posts: 1050
- Joined: Thu Jul 30, 2009 12:06 pm
Re: Searching with GET
Click Advanced Search at the top (next to the Search box). Type in "test". See the URL:
Really, afaik, only the search box at the top of this board does it via $_POST.
Code: Select all
http://area51.phpbb.com/phpBB/search.php?keywords=test&terms=all&author=&sc=1&sf=all&sr=posts&sk=t&sd=d&st=0&ch=300&t=0&submit=Search
Re: Searching with GET
We should be using GET on search forms everywhere it makes sense. There was http://tracker.phpbb.com/browse/PHPBB3-7057 which appears to had been fixed.
Re: Searching with GET
Also from some quick testing 'Search these results' uses POST.
Formerly known as Unknown Bliss
No unsolicited PMs please except for quotes.psoTFX wrote: I went with Olympus because as I said to the teams ... "It's been one hell of a hill to climb"