i have a php dynamic website with a simple mysql search form which means a single index page with get page variable.
now my problem is when i do the search my page variable got replace with the only search terms.
please see the below code example.
This is my dynamic php starting page with the search form.
index.php?v=counselling
And when i do the search i get this..
index.php?name=value
my initial page variable in my case V get replaced with the search terms.
here is my html from tag..
<form action="index.php?v=counselling" method="get">
i have also tried $_SERVER['PHP_SELF'] but so far no luck.
what mistake im doing here?
Send it as a hidden input value along with your search input.