WHEW! Glad to figure out the issue, I was going crazy trying to figure it out.
Glad you found that rewrite code. So, I also totally understand why you want the rewrite now.
That is a common thing that a lot of people have mentioned. The way I get around it is to use
PHP and SESSION variables. They are used EXACTLY like posted values, but, are passed unseen.
When your form “posts”, you send it to a small unseen PHP file that reads the values and loads
them all into $_SESSION[‘variables’]… Then, redirect to the correct page in whatever folder you wish.
The program in that folder will read the session variables instead of the $_POST’s.
So, to the user, it looks like www.mydomain.com/dames/pants/shorts/products.php. And, the PHP file
products.php reads the $_SESSION variables instead of the $_POST variables. It work identical to the
old versions but, just uses different variables.
Orrrrr, just get rid of the extra folders and use the session variables to parse thru the levels.
If you have 4 levels of data, “dames/pants/shorts/small” you could have session variables
called level1/level2/level3/level4. As a user selects a new “level” fill it and refresh the page.
The products.php page would check the levels and display the correct data. If the user dropped
a level and went from small-shorts to just shorts, then the code would fill “level4” with NULL and
then refresh itself so that the level would display the shorts level with a choice of the various
options for shorts such as “large/medium/small”… Something like that…
I can think up about 20 ways to do this without and folder or level change in the address bar.
It really depends on why you want to use or see the address bar. If the site is fluid and the user
just has to click on things, they do not care what is showing in the address bar. If you want a nice
“clean” address bar, get rid of the ?=blah;=blah;=blah; totally. That way the only thing a user would
see would be www.mydomain.com/products.php or www.mydomain.com/orderform.php or whatever
page from the site would be showing.
Hope that makes sense, I am typing while thinking, so who knows… LOL I am here for a few hours
if you have questions about these ideas…