Welcome Guest, Not a member yet? Register   Sign In
Form action is resulting in 404 [Nevermind, Issue Resolved]
#1

[eluser]Razz[/eluser]
Alrighty. Another problem with my dabblings in CI.

Iʻm trying to pass info from a form to a function located in my home.php controller.

Form: (localhost/CodeIgniter/index.php/home/edit/8
Code:
<?php echo form_open('home/modify_info');?>

(manual sql query up here)

<?php echo form_hidden('user_id', $this->uri->segment(3));?>

<p> First Name: &lt;input type="text" name="FirstName" value="&lt;? echo $row-&gt;FirstName;?&gt;"/></p>
<p> Last Name: &lt;input type="text" name="LastName" value="&lt;? echo $row-&gt;LastName;?&gt;"/></p>
<p> Email Address: &lt;input type="text" name="Email Address" value="&lt;? echo $row-&gt;Email;?&gt;"></p>
<p> &lt;input type="submit" value="Update Profile"/&gt;</p>

&lt;/form&gt;

and Controller:
Code:
&lt;?php
class Home extends Controller   {
        function Home(){
             parent::Controller();
             ......
             ....
             ..
        }

        function index(){
             .....
             ...
             .
        }
        function edit(){
             .....
             ...
             .
        }
    function modify_info()
    {    
        echo 'this function displays a 404';
    }
...

and my browsers throws a 404 whenever i visit
http://localhost/CodeIgniter/index.php/home/modify_info and every other one of my functions work fine.

Note: iʻm following the CI screencasts on codeigniter.com exactly, except for the changes in form and names on the most recent CI. anyone catch any blatant errors of mine?


Messages In This Thread
Form action is resulting in 404 [Nevermind, Issue Resolved] - by El Forum - 04-22-2008, 07:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB