On Wed, May 30, 2007 at 10:48:26AM -0500, Doug Dawson wrote: > Hello! > > I'm trying to redirect to a page and send the existing args with it, but > when I try, the browser displays nothing. I didn't find anything in the > error log either. > > I looked at the documentation on $m->redirect(), but it only indicated > that a URL can be passed in. I thought there was a way to redirect and > pass the args, but I can't remember. I tried: > > $m->redirect($url,%ARGS)
The way I do this (and if anyone has a better way please chime in!) is to do something like this: my $url = "/wherever.html?"; foreach( keys %ARGS ) { $url .= "$_=$ARGS{$_}&"; } $m->redirect($url); Basically tack on the args passed to the page to the URL by hand. HTH. Alan -- Alan <[EMAIL PROTECTED]> - http://arcterex.net -------------------------------------------------------------------- "Beware of computer programmers that carry screwdrivers." -- Unknown ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users