Welcome Guest, Not a member yet? Register   Sign In
CI and jQuery help
#7

[eluser]Sceneshift[/eluser]
So I have a view setup like so:

Code:
<form name="catch_edit" method="POST" action="<?=site_url("catches/do_edit/")?>">
<input type="text" name="tbLocation" />
<input type="submit" name="submit" value="Find" />
</form>

And the catches/do_edit function of my controller looks like so:

Code:
function do_edit()
     {
        //$user_data = $this->User->check_user(true);
    //    $this->load->model('catch_data', 'Catch');
        //$results = $this->Catch->get_location(1); //get the record from the database
        
        echo "hi";    
    }


For some reason, when I submit the form, it just returns the entire pages source code, any ideas why this is happening? Sorry for being such an ignorant git.


Messages In This Thread
CI and jQuery help - by El Forum - 05-21-2008, 04:13 PM
CI and jQuery help - by El Forum - 05-21-2008, 04:33 PM
CI and jQuery help - by El Forum - 05-22-2008, 01:18 AM
CI and jQuery help - by El Forum - 05-22-2008, 01:42 AM
CI and jQuery help - by El Forum - 05-22-2008, 07:49 AM
CI and jQuery help - by El Forum - 05-22-2008, 08:08 AM
CI and jQuery help - by El Forum - 05-22-2008, 09:43 AM
CI and jQuery help - by El Forum - 05-22-2008, 10:11 AM
CI and jQuery help - by El Forum - 05-22-2008, 10:16 AM
CI and jQuery help - by El Forum - 05-22-2008, 10:28 AM
CI and jQuery help - by El Forum - 05-22-2008, 10:30 AM
CI and jQuery help - by El Forum - 05-22-2008, 10:31 AM
CI and jQuery help - by El Forum - 05-22-2008, 10:32 AM
CI and jQuery help - by El Forum - 05-22-2008, 10:35 AM
CI and jQuery help - by El Forum - 05-22-2008, 10:37 AM
CI and jQuery help - by El Forum - 05-22-2008, 10:40 AM
CI and jQuery help - by El Forum - 05-22-2008, 12:06 PM



Theme © iAndrew 2016 - Forum software by © MyBB