From: Ross K. <te...@ya...> - 2003-01-13 16:58:15
|
Hi Arnold Sorry I haven't had time to contribute much here. --- Arnold Cano <arn...@ya...> wrote: > Ross is correct that in Struts the REDIRECT flag > determines whether the system uses the forward() or > sendRedirect() method. However, since PHP does not > have an equivalent to the forward() method, Phrame > uses the header() method in both cases. The only > difference being that when the REDIRECT flag is in > place the session information is destroyed before the > header(). I don't recall exactly how forward works in JSP but I think the closest thing we have in PHP is 'include'. I know it sounds different but I think the end result is more or less the same. Perhaps the ActionView class does something something like: include "$path_to_views/$required_view" . '.php'; Maybe JSP's forward does something tidy in terms of variable scope. I don't know. > Does anyone know if there is a way to "forward" to > another page on the server (server side) without using > the header() method? I may be wrong but my > understanding is that the header('Location: '.$path) > method asks the browser to fetch the $page (client > side). Your understanding is correct. Ross __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |