form validation help PLEASE

#28
[eluser]JHackamack[/eluser]
it is a good idea in theory to have all the login functions on one controller, and all the other functions their respective controllers, sometimes it doesn't work like that. What I would recommend is moving the index code of the "mains" and place that content in addition to the content you have in the login page. That would allow you to load the views in the login, and provide people a nice url to have bookmarked for login (sitename.com/login) Again, this really is up to you as to how you wish to use it, but it is generally frowned upon on using redirects with form validation and flash variables.

Another approach would be to keep the mains controller the way it is, post to the login controller and copy the mains content into the index function of the controller. That way the main page still works the same, the login page will only show on failure, the downside is you have two copies of the same code, which makes for some headaches when dealing with revisions.


Messages In This Thread
form validation help PLEASE - by El Forum - 01-09-2010, 12:34 AM
form validation help PLEASE - by El Forum - 01-09-2010, 01:20 AM
form validation help PLEASE - by El Forum - 01-09-2010, 01:21 AM
form validation help PLEASE - by El Forum - 01-09-2010, 01:24 AM
form validation help PLEASE - by El Forum - 01-09-2010, 01:28 AM
form validation help PLEASE - by El Forum - 01-09-2010, 01:31 AM
form validation help PLEASE - by El Forum - 01-09-2010, 01:31 AM
form validation help PLEASE - by El Forum - 01-09-2010, 01:33 AM
form validation help PLEASE - by El Forum - 01-09-2010, 01:35 AM
form validation help PLEASE - by El Forum - 01-09-2010, 01:42 AM
form validation help PLEASE - by El Forum - 01-09-2010, 01:43 AM
form validation help PLEASE - by El Forum - 01-09-2010, 01:45 AM
form validation help PLEASE - by El Forum - 01-09-2010, 01:54 AM
form validation help PLEASE - by El Forum - 01-09-2010, 01:55 AM
form validation help PLEASE - by El Forum - 01-09-2010, 02:01 AM
form validation help PLEASE - by El Forum - 01-09-2010, 02:03 AM
form validation help PLEASE - by El Forum - 01-09-2010, 02:05 AM
form validation help PLEASE - by El Forum - 01-09-2010, 02:08 AM
form validation help PLEASE - by El Forum - 01-09-2010, 02:09 AM
form validation help PLEASE - by El Forum - 01-09-2010, 02:09 AM
form validation help PLEASE - by El Forum - 01-09-2010, 02:10 AM
form validation help PLEASE - by El Forum - 01-09-2010, 02:13 AM
form validation help PLEASE - by El Forum - 01-09-2010, 02:16 AM
form validation help PLEASE - by El Forum - 01-09-2010, 02:20 AM
form validation help PLEASE - by El Forum - 01-09-2010, 02:20 AM
form validation help PLEASE - by El Forum - 01-09-2010, 02:24 AM
form validation help PLEASE - by El Forum - 01-09-2010, 02:27 AM
form validation help PLEASE - by El Forum - 01-09-2010, 02:32 AM
form validation help PLEASE - by El Forum - 01-09-2010, 02:41 AM
form validation help PLEASE - by El Forum - 01-09-2010, 02:45 AM
form validation help PLEASE - by El Forum - 01-09-2010, 02:45 AM
form validation help PLEASE - by El Forum - 01-09-2010, 02:48 AM
form validation help PLEASE - by El Forum - 01-09-2010, 02:51 AM
form validation help PLEASE - by El Forum - 01-09-2010, 02:56 AM
form validation help PLEASE - by El Forum - 01-09-2010, 03:13 AM
form validation help PLEASE - by El Forum - 01-09-2010, 10:51 AM
form validation help PLEASE - by El Forum - 01-09-2010, 02:42 PM
form validation help PLEASE - by El Forum - 01-09-2010, 02:45 PM
form validation help PLEASE - by El Forum - 01-09-2010, 02:52 PM
form validation help PLEASE - by El Forum - 01-09-2010, 02:54 PM
form validation help PLEASE - by El Forum - 01-09-2010, 02:54 PM
form validation help PLEASE - by El Forum - 01-09-2010, 02:56 PM
form validation help PLEASE - by El Forum - 01-09-2010, 02:59 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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