FrEaKmAn
May 9th, 2008, 02:39 PM
Hello,
I have a form which action is set to another url (form.site.com/something). I like the idea of doing this, because if everything is on one page and after we submit something and we want to refresh, we get a warning about resubmitting data...
So after I submit data to form... I redirect back to page where I want. But what if there is something wrong, like input is incorrect. Of course I will use ajax for checking this but some people still don't have compatible browsers or they just deny javascript. I did store warnings in sessions, which then show on the submit page, but is this safe? I stored my custom messages which are hopefully secure from sql injection, but would be wise to save user submitted data?
I have a form which action is set to another url (form.site.com/something). I like the idea of doing this, because if everything is on one page and after we submit something and we want to refresh, we get a warning about resubmitting data...
So after I submit data to form... I redirect back to page where I want. But what if there is something wrong, like input is incorrect. Of course I will use ajax for checking this but some people still don't have compatible browsers or they just deny javascript. I did store warnings in sessions, which then show on the submit page, but is this safe? I stored my custom messages which are hopefully secure from sql injection, but would be wise to save user submitted data?