Emailform without losing data with captcha error.

Issues related to forms.
Post Reply
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: Emailform without losing data with captcha error.

Post 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.
www.dbtechnosystems.com
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: Emailform without losing data with captcha error.

Post 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 ?
www.dbtechnosystems.com
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: Emailform without losing data with captcha error.

Post 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.
www.dbtechnosystems.com
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: Emailform without losing data with captcha error.

Post by Navaldesign »

Just add the code I told you in start of Page of the "success" page !
www.dbtechnosystems.com
User avatar
Navaldesign
 
 
Posts: 862
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: Emailform without losing data with captcha error.

Post 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!
www.dbtechnosystems.com
Post Reply