Welcome Guest, Not a member yet? Register   Sign In
[solved] Form validation and dynamic URLs causing havoc :-(

I believe, if you added parameters into post-reply you could capture the data pretty easily.

For example, http://www.mydomain.com/forum/post-reply...back-again should have:
<form action="forum/post-reply/general-topics/3/and-back-again" method="POST">

function post-reply($cat, $id, $title)

    // If validation fails, else process user new post
    if ( ! $this->form_validation->run())
        $this->load->view('forum-post-reply-view', $this->data);
        // insert to DB here and such
        redirect('forum/post-view/'."$cat/$id/$title", 'location');

Or somesuch.

By the end of it, you're either back on post-reply with the dynamic URL in place already, or you're back to looking at the post, once again with your dynamic URL.

Hope this helps!

Messages In This Thread
[solved] Form validation and dynamic URLs causing havoc :-( - by El Forum - 05-26-2011, 03:37 PM

Theme © iAndrew 2016 - Forum software by © MyBB