- This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- The forum ‘Back End’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Hello there,
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
This guy here seemed to figure out a way, not using .htaccess mind you:
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.
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 . "/" . $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