[eluser]jay-2003[/eluser]
Hi,
I have written a form builder system as part of a CMS, the system allows an administrator to generate input fields and add validation etc
The results of the validation are stored in "set_flashdata" variables to display the form errors and re-populate the form.
If I have up to around 10 fields the form works fine, but any more than that and I get:
502 Bad Gateway
The server returned an invalid or incomplete response.
I have narrowed down the problem to having too many set_flashdata variables (each field creates 2 flashdatas to store the error and the post variable to re-populate the form and one form the customer has created has 65 fields). The validation works fine when I comment out the loop that creates the flashdata so it is definately this that is causing the problem.
Is there anything I can do to work around this? I am thinking about doing a batch insert of the errors and form data to a table, then passing a unique ID for this instance of form submission back via flashdata to load the results from the DB. Seems a little overkill though, anyone got any ideas?
Thanks in advance
Jason