[eluser]philpalmieri[/eluser]
Hey escape,
Maybe im just over simplifying your problem, but first: the 127.0.0.1 is coming in because you havnt set $config['base_url'] in your config.
Next up, is instead of posting to a relative action:
Code:
<form method="post" action="mycontroller/a_function">
have them use absolute path..(notice the pre-pended '/')
Code:
<form method="post" action="/mycontroller/a_function">
Also, you can do some simpe .htaccess stuff to get rid of the index.php too.
if you dont want to mess with .htaccess
Code:
<form method="post" action="/index.php/mycontroller/a_function">
Phil