[solved] Form validation and dynamic URLs causing havoc :-( |
[eluser]boltsabre[/eluser]
Hi guys, I have a forum, and the URLs are all dynamic. When a user click 'add comment' to a particular post, the URL is different from another post (can differ in Category and Post Id values). Heres 2 sample URLs from the forum when user clicks 'add comment': www.mydomain.com/forum/post-reply/general-topics/3/and-back-again www.mydomain.com/forum/post-reply/working-holiday/1/and-another-one uri 1 = controller, uri = function (post-reply), and uri 3-5 are dynamic (category, id, title). But when the user tries to add a comment to a post and fails in the form validation I'm running into trouble because of this code in the controller: Code: // If validation fails, else process user new post Obviously when form validation fails, I'm loosing my 'dynamic' url. Is there anyway to get around this apart from putting all my dynamic elements in hidden form fields? Thanks in advance, really hoping someone can help me out here! |
Messages In This Thread |
[solved] Form validation and dynamic URLs causing havoc :-( - by El Forum - 05-26-2011, 02:55 PM
[solved] Form validation and dynamic URLs causing havoc :-( - by El Forum - 05-26-2011, 03:37 PM
[solved] Form validation and dynamic URLs causing havoc :-( - by El Forum - 05-26-2011, 03:55 PM
[solved] Form validation and dynamic URLs causing havoc :-( - by El Forum - 06-02-2011, 06:10 AM
|