CodeIgniter Forums

Full Version: Using the same form for add and edit
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]emurad[/eluser]
Hello,

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

Thanks.

El Forum

[eluser]InsiteFX[/eluser]
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

InsiteFX

El Forum

[eluser]marjune[/eluser]
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?

El Forum

[eluser]InsiteFX[/eluser]
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.

InsiteFX