• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using the same form for add and edit


I'm wondering if using the same form in CodeIgniter for add and edit is possible and practical just like in Ruby On Rails?


Auth 1.0.6 - By Adam Griffiths

Look at the library source code for the register function.

It is for CodeIgniter 1.7.x but I have converted it to run under CodeIgniter 2.0.x


what do you mean? Like you got a page then your'e going to add data into database as well as retrieving it then update?

What he means is that he has one form but wants to use it for both editing and adding data.

Yes, it can be done download the above auth and view the source for the register function and view.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.