HTML forms and htaccess altering visible URL
Posted on 2010-08-17
hopefully this will make sense, here is what I am trying to achieve.
I have an input box (search box) on a form on a dynamic html page (index.php). it writes to variable 'param' on submit.
on submit I need to dynamically create a web page, (easy) I guest use $_REQUEST['param'] in my php.
but what I need to do is redirect the page to
where value is the user entered text in the input box
this is where I am struggling, what is the best way to achieve this.
note, I currently have entry in htaccess that does the other way around, ie
mydomain.com/value/ is changed to mydomain.com/index.php?param=value