Welcome Guest, Not a member yet? Register   Sign In
best practice with form,validation,error,success,action order
#10

[eluser]Zeldinha[/eluser]
[quote author="walesmd" date="1187721485"]From a usability and user experience site, don't make your users do your work for you. I'd make a database table that dumped an error code, time of occurence, and the user's session info (user agent, variables, etc). [/quote]

Hehe, well, if there's a database problem you wouldn't be able to populate that table with the errors Wink But sending an automatic email with this info would do the trick, it's a very nice suggestion.

And I'm just being picky now (sorry), but I saw in some of the examples posted here the $_POST array thrown directly to the insert. I'd suggest to use the Validation to first clean the user input, and then use $this->input->post to call the variables. Never ever use the $_POST/$_GET values directly, it's a headache Smile

Regards,


Messages In This Thread
best practice with form,validation,error,success,action order - by El Forum - 08-21-2007, 07:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB