[eluser]fantomex[/eluser]
Clunky title but: say I have a form
Code:
<?php
echo form_open('/index');
echo form_input('data');
echo form_submit();
?>
If someone types in "foo" and submits, the /index page then shows data based on the value of 'foo'. How can I get it to submit to /index/data/foo so that there's a canonical url for that data which people can then bookmark/send a link etc. The options seem to be to turn $_GET on and have /index/?data=foo or send to an intermediate page which reforwards to index/data/foo. Anything else?