EllisLab text mark
Advanced Search
     
Simple Form Help
Posted: 02 December 2010 05:02 PM   [ Ignore ]
Joined: 2010-08-31
4 posts

Hi guys

Help needed desperately please, approaching a deadline for a large client and need this working.

I’m writing a small plugin and am using forms through EE. I’ve got the form submitting through the mod.plugin.php code and processing the vars correctly etc.

However the problem I’m having is that if the fields fail validation in the action function that handles the form submission and I dont explicitly redirect to another page, the rendered page to the user is just blank.

How do I tell EE to render the original page with the form and the failed validation message?

Many thanks

 
Posted: 05 December 2010 01:14 PM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Joined: 2010-08-31
4 posts

Hi

Any help on this please?

I know we could just validate the form client-side using js (+ ajax for server side), etc, but we shouldn’t be forced to use this?

I think I saw a mention of refilling a form with submitted values in the EE dev docs somewhere so surely this implies that you can show the original page/template after a failed form submission (unless this refilling requires session data storage?)

Surely I must be missing something very simple here??

I’m sure this is a problem that almost every EE developer faces so could someone please give me a definitive answer either way?

Thanks