CodeIgniter Forums
Background Switcher? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Background Switcher? (/showthread.php?tid=42417)

Pages: 1 2


Background Switcher? - El Forum - 06-21-2011

[eluser]austintbiggs[/eluser]
Quote:ok, I think I see your problem.

Every form has the same id. When your javascript gets called, it is only submitting the first one it finds.

Any ideas? I'm not the greatest with JS


Background Switcher? - El Forum - 06-21-2011

[eluser]toopay[/eluser]
I see "$this->load->library('upload', $config);", followed by images processing (storing, modify, display, and so on) on your code, then i make assumption you are decide to let user upload their own image...Am i wrong?


Background Switcher? - El Forum - 06-21-2011

[eluser]austintbiggs[/eluser]
Yes, those are built in for an easier way to add images, but the appropriate form is only granted if the users permissions allow, meaning they must be an admin