Welcome Guest, Not a member yet? Register   Sign In
Using the same form for add and edit
#1

[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.
#2

[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
#3

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

[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




Theme © iAndrew 2016 - Forum software by © MyBB