oh wow, thanks danny ! it worked great. Yes, I did not had a default condition if the request string was empty.
alright one more thing plz...
How do I append a variable to a URL from within PHP?
see I have this code:-
PHP Code:
if ($_REQUEST['do'] == 'search')
{
$category=$_REQUEST["cat"];
$order=$_REQUEST["order"];
}
$category and $order contains the values posted by the form via post method. I want that these values should append to URL like this "
page.php?do=search&cat=$category&order=$or der".
Currently it does not show the values in the URL (its blank like
cat=), but on echo the variable does throw the correct values.
Thank You