How to change or "mask" message/send in URL to just message? |
[eluser]term25[/eluser]
I would like to change or mask the function name in my url, so when the send button on the contact page (http://localhost/message) is clicked, it goes to the function send in my message controller. And here is the problem. When the user make a mistake a form_validation catch the error and send it back to the view like -> Code: if ($this->form_validation->run() == FALSE) It should be OK, however the URL in the browser looks like: http://localhost/message/send which doesn't look "cool". Is there a way how to mask or change the URL address to be always just http://localhost/message even after the form_validation error? How can I do such thing via htaccess or some trick in CodeIgniter itself? Thanks in advance.
[eluser]CroNiX[/eluser]
You can always post to the same method that displays and processes your form instead of separate methods.
[eluser]Samus[/eluser]
[quote author="CroNiX" date="1340036891"]You can always post to the same method that displays and processes your form instead of separate methods.[/quote] this |
Welcome Guest, Not a member yet? Register Sign In |