hal10001 Posted February 21, 2008 Share Posted February 21, 2008 The topic is very similar to this post, but a little different: http://www.phpfreaks.com/forums/index.php/topic,183392.0.html I want to follow an MVC design pattern, with a view and controller. The view passes form values to the controller, and then the controller validates the input. In the case where there is an error, I need to redirect back to the view, keeping the values that were initially entered by the user. I know how to do this by appending query string variables to the return URL, but I have a ton of form data, with textarea fields, etc., and I need to know what is an alternative for sending this information back to the view. How do frameworks typically do this sorta thing -- is it by adding the values and errors to a session before redirecting? Someone suggested to me on another message board to use cURL and request the original view from the controller, render it, and fill in the form values that were submitted. That sounds like overkill, so I wanted to ask here. Thanks!!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.