Nice solution! Perfect!
Gareth Kirwan wrote:
The key to this is how the redirect happens.
The HTTP standard is what limits what you can do here.
You should see that there is no provision for what amounts to "posted"
content in a redirect (AFAIK).
This means you need to convert them yourself.
Perhaps mason's redirect could be made to do this, but until it is:
$m->redirect("$url?".join '&', map "$_=$ARGS{$_}", keys %ARGS);
This is limited to just give you an idea. Implement entity encoding
yourself, or ask if you need to.
HTH
Gareth
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Doug Dawson
Sent: 30 May 2007 16:48
To: Mason-Users
Subject: [Mason] Redirect with args
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)
but, it didn't work.
Thanks!
--
Doug Dawson
Web Developer
Physicians Mutual Insurance Company
(402) 930-2432
Men are from Mars. Women are from Venus. Computers are from Hell.
____________________________________________________________
This message and any attachments are confidential, may
contain privileged information, and are intended solely for
the recipient named above. If you are not the intended
recipient, or a person responsible for delivery to the named
recipient, you are notified that any review, distribution,
dissemination or copying is prohibited. If you have received
this message in error, you should notify the sender by return
email and delete the message from your computer system.
--------------------------------------------------------------
-----------
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
-------------------------------------------------------------------------
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
--
Doug Dawson
Web Developer
Physicians Mutual Insurance Company
(402) 930-2432
I would love to change the world, but they won't give me the source code.
____________________________________________________________
This message and any attachments are confidential, may contain privileged
information, and are intended solely for the recipient named above.
If you are not the intended recipient, or a person responsible for
delivery to the named recipient, you are notified that any review,
distribution, dissemination or copying is prohibited. If you have
received this message in error, you should notify the sender by return
email and delete the message from your computer system.
-------------------------------------------------------------------------
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