how do you handle form submissions |
[eluser]jvittetoe[/eluser]
in my current application, once a user logins in they are redirected to their dashboard, via the dashboard.php controller. currently residing at www.myproject.com/dashboard now from this page there is a link to modify settings. once clicked they are then routed to www.com/dashboard/settings - this function from within the dashboard controller loads a view file... Code: $template['mainContent'] = $this->load->view('dspSettings', $data, true); now from the dspSettings view file there is a form. im using the ci form helper. the form is as follows... Code: <?=form_open('dashboard/updateUserAccount'); ?> on submission, the form routes to the dashboard/updateUserAccount function: Code: function updateUserAccount(){ the current url is www.com/dashboard/updateUserAccount which brings up errors telling me 'Undefined property: password_new' because that field was submitted empty. how can i keep the field optional and still modify a record in the database without running into errors like this. im still new to the framework and developing in general. how is my structure. could i be doing these easier and faster? thanks. |
Messages In This Thread |
how do you handle form submissions - by El Forum - 08-31-2007, 04:05 PM
how do you handle form submissions - by El Forum - 09-01-2007, 12:11 AM
how do you handle form submissions - by El Forum - 09-02-2007, 10:17 PM
how do you handle form submissions - by El Forum - 09-03-2007, 02:07 PM
how do you handle form submissions - by El Forum - 09-03-2007, 04:47 PM
how do you handle form submissions - by El Forum - 09-04-2007, 06:27 AM
how do you handle form submissions - by El Forum - 09-04-2007, 07:22 AM
how do you handle form submissions - by El Forum - 09-04-2007, 04:23 PM
|