So I want to have a search bar a the top of my homepage that consists of 3 parts.
a text input: to input your search
a select dropdown menu: to select the search type
and a search button: to perform the search
the 4 search types are like so (basically 4 URLS):
SEARCH FORUMS
forums/search.php?action=search&keywords=*<PUT_YOUR_SEARCH_HERE>*&author=&forum=-1&search_in=all&sort_by=0&sort_dir=DESC&show_as=topics&search=Submit
SEARCH GALLERIES
galleries/thumbnails.php?album=search&search=<PUT_YOUR_SEARCH_HERE>
SEARCH ARTICLES
articles/?s=<PUT_YOUR_SEARCH_HERE>
SEARCH MEMBERS
forums/userlist.php?username=*<PUT_YOUR_SEARCH_HERE>*&show_group=-1&sort_by=registered&sort_dir=DESC&search=Submit
So basically what you type in the input box is just inserted into one of the 4 urls at the place where I have put <PUT_YOUR_SEARCH_HERE>, and then the url is followed.
I know this would be quite simple to do in javascript but I would rather it not rely on javascript...is there a way using php?
...I can think of one way but it requires a redirect.