CodeIgniter Forums
Form action is resulting in 404 [Nevermind, Issue Resolved] - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: Form action is resulting in 404 [Nevermind, Issue Resolved] (/thread-7764.html)



Form action is resulting in 404 [Nevermind, Issue Resolved] - El Forum - 04-22-2008

[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?


Form action is resulting in 404 [Nevermind, Issue Resolved] - El Forum - 04-22-2008

[eluser]gtech[/eluser]
[edit]ah... did not reread the resolved bit Smile[/edit]