I have an 'index.php' page which uses a form to pass a search term to the 'searchresults.php' page. I use the POST and GET as usual. $term=$_POST['term']; PHP: All works fine. I'd like to include some text keywords on the 'index.php' page which can also be passed to the 'searchresults.php' I can use an html link like <a href="../shop/cat/searchresults.php?term=leather">leather</a> with the $term=$_GET['term']; PHP: But i'm having trouble using both at the same time. Can anyone help me find a solution?
if you still haven't found the solution if ($_POST['term']) $term = $_POST['term']; else $term = $_GET['term']; Hope that helps
Thanks Suryawl It seems $_REQUEST is doing the job REQUEST: An associative array that by default contains the contents of $_GET, $_POST and $_COOKIE.