Welcome Guest, Not a member yet? Register   Sign In
Root paths for form submit
#2

[eluser]PhilTem[/eluser]
Use the form_helper. It will fix your problems since all URLs are created with $config['base_url'] in mind.

Code:
echo form_open('logout');
will always point to example.com/logout

Or just use
Code:
<form action="<?php echo site_url('logout'); ?>">

Will do the same yet just returning "example.com/logout" instead of the whole form-open tag Wink

And read the freakin doku, it won't bite Wink


Messages In This Thread
Root paths for form submit - by El Forum - 06-08-2012, 02:43 PM
Root paths for form submit - by El Forum - 06-08-2012, 03:13 PM
Root paths for form submit - by El Forum - 06-08-2012, 03:52 PM



Theme © iAndrew 2016 - Forum software by © MyBB