Welcome Guest, Not a member yet? Register   Sign In
Check if form has been submitted?
#1

[eluser]RS71[/eluser]
Hey

Is there a general way to check that the form has been submitted (or basically that validation has failed?) I don't really want the controller/model to run the queries again in case of validation failure (since I'd be using the POST values and not the DB ones there is no need to run the queries)

Another need of mine that depends on this check is that I have dynamically created fields via JavaScript. Initially I'd like to create as many field as I have in the DB but in case of validation error, I'd need to create only as many as there are in the POST (since the user could have decided to remove a field)

I need a check sorta like how the validation does it. How when you initially display a form it doesn't display the errors/checks for errors.

Thanks in advance.


Messages In This Thread
Check if form has been submitted? - by El Forum - 01-27-2009, 11:22 AM
Check if form has been submitted? - by El Forum - 01-27-2009, 03:22 PM
Check if form has been submitted? - by El Forum - 01-27-2009, 08:01 PM
Check if form has been submitted? - by El Forum - 01-27-2009, 08:32 PM
Check if form has been submitted? - by El Forum - 01-28-2009, 10:09 AM
Check if form has been submitted? - by El Forum - 01-28-2009, 10:39 AM
Check if form has been submitted? - by El Forum - 01-28-2009, 10:40 AM
Check if form has been submitted? - by El Forum - 01-28-2009, 10:47 AM
Check if form has been submitted? - by El Forum - 03-28-2010, 09:12 PM
Check if form has been submitted? - by El Forum - 05-05-2010, 10:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB