I have a dropdown menu where on click on the the main menu items the dropdown menu items appears. I have set a querystring on the main menu items so as my dropdown menu appears.
Another user on a different forum had this approach:
No need to use .htaccess at all. All you really need to do is change your variables in your script from $_GET['email] AND $_GET['name'] to $_POST['email'] and $_POST['name'].
So, presumably, if you're using $_GET, try changing it to $_POST.
the $_POST is not working :( am concatenating the following a variable tht acts as a querystring in an anchor tag $show='?expanddiv='.$SubmenuNav; $addressbar="http://" . $_SERVER ['SERVER_NAME'] . "/" . $controller . "/" . $action .$show ; $output .= "<li id='$current'><a href=$addressbar id='$MainNav'>".$name."</a>";
But i want to hide ?SubmenuNav_1,?SubmenuNav_2,?SubmenuNav_3 in the url , anyone who can help please.
I have even used the .htacess to hide the querystring but it is not working, may be i wronged somewhere. RewriteEngine On RewriteBase / RewriteCond %{QUERY_STRING} . RewriteRule ^index /index? [L]
I have a dropdown menu where on click on the the main menu items the dropdown menu items appears.
I have set a querystring on the main menu items so as my dropdown menu appears.
http://test.pg.dreamer.com/index/index? ... aultSubNav
http://test.pg.dreamer.com/index/index? ... bmenuNav_1
http://test.pg.dreamer.com/event/index? ... bmenuNav_2
http://test.pg.dreamer.com/location/ind ... bmenuNav_3
I want to hide ?expanddiv=defaultSubNav, ?expanddiv=SubmenuNav_1, ?expanddiv=SubmenuNav_2, ?expanddiv=SubmenuNav_3 .. these querystring in url.
Thank you kind help
http://www.go4expert.com/forums/showthread.php?t=9366
Another user on a different forum had this approach:
So, presumably, if you're using $_GET, try changing it to $_POST.
am concatenating the following a variable tht acts as a querystring in an anchor tag
$show='?expanddiv='.$SubmenuNav;
$addressbar="http://" . $_SERVER ['SERVER_NAME'] . "/" . $controller . "/" . $action .$show ;
$output .= "<li id='$current'><a href=$addressbar id='$MainNav'>".$name."</a>";
the result is
http://test.pg.dreamer.com/index/index?SubmenuNav_1
http://test.pg.dreamer.com/event/index?SubmenuNav_2
http://test.pg.dreamer.com/location/index?SubmenuNav_3
But i want to hide ?SubmenuNav_1,?SubmenuNav_2,?SubmenuNav_3 in the url , anyone who can help please.
I have even used the .htacess to hide the querystring but it is not working, may be i wronged somewhere.
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} .
RewriteRule ^index /index? [L]
Thank you for ur reply