PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I would imagine sending it in the url as 'search' would be a good way.. since you already have 'page' used for the page number to go to. When you check for $_POST['search'] if that is empty, look for $_GET['search'] then.. if that is empty then display all results.. I'd suggest using rawurlencode() on the variable when adding it to the url, just in case there's stuff that shouldn't be unescaped in it..