Page 1 of 1

Re: Emailform without losing data with captcha error.

Posted: Thu Sep 01, 2011 6:25 pm
by Navaldesign
Why not ?

The project principles also apply if you use the built in processor. You ar eprobably doing something wrong.

Of course, using the built in processor modifies the behavior and you need to fix this yourself.

Re: Emailform without losing data with captcha error.

Posted: Thu Sep 01, 2011 8:32 pm
by Navaldesign
I'm sorry, but I don't understand. Why would you need this ?

Using the built in form processor the form submission takes place within your primary page (on the contrary of my example project.

Further more, this thread was about "remembering" the values of the form fields after an error. What does the project you attached here has to do with this ?

Re: Emailform without losing data with captcha error.

Posted: Thu Sep 01, 2011 9:02 pm
by Navaldesign
Please understand that these are two different things. In the example project, the processing code is in the "confirm" page. So I have added this code to redirect to "index" if someone tries to reach the confirm page WITHOUT form submission.

In your case, the processing code is in the first page. So there is no reason to do the redirect from the second to the first.

Re: Emailform without losing data with captcha error.

Posted: Thu Sep 01, 2011 9:43 pm
by Navaldesign
Just add the code I told you in start of Page of the "success" page !

Re: Emailform without losing data with captcha error.

Posted: Fri Sep 02, 2011 6:41 am
by Navaldesign
Maybe you have not understood that you should NOT put this code in your St_msg page. Because, in YOUR project, the processing code is in the "index" page, so there is NO reason why you should put the code in the ST_msg page.

In the example project page the code was there because it also contained the processing code.

There is no reason in your case to do so. and you can NOT do so, otherwise, after each submission, it will always redirect to the index page, so it will not display at all!