Welcome Guest, Not a member yet? Register   Sign In
Update DB from HTML form
#1

[eluser]Unknown[/eluser]
Hi all,

I currently have a web form looking like this;

Code:
<form>
  Username: &lt;input type="text" disabled="disabled" value="' . $data['username'] . '"/&gt; </br>
  First Name: &lt;input type="text" value="' . $data['firstName'] . '"/&gt; </br>
  Last Name: &lt;input type="text" value="' . $data['lastName'] . '"/&gt; </br>
  Email Address: &lt;input type="text" value="' . $data['email'] . '"/&gt; </br>
  Enabled: &lt;input type="checkbox" value="' . $data['enabled'] . '"/&gt; </br>
  Admin: &lt;input type="checkbox" value="' . $data['admin'] . '"/&gt; </br>
        
&lt;/form&gt;

I would now like to add a submit button to this and allow users to update their details as they see fit.

Is there any documentation on how this should be achieved? I'm aware of how to do it the old PHP\MySQL way, but not through CI!

Any guidance would be appreciated.

Thanks Smile


Messages In This Thread
Update DB from HTML form - by El Forum - 02-26-2013, 07:29 AM
Update DB from HTML form - by El Forum - 02-27-2013, 01:54 AM



Theme © iAndrew 2016 - Forum software by © MyBB