Quantcast

getRequest->()getUserParam conundrum

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

getRequest->()getUserParam conundrum

Mike Wright
Hi all,

I need external brains for this one ;)

I've got an ajax client-side, zf server-side application.

Given this path:

     http://vm7/admin/location/deactivate/name/Store%20#2

->getUserParam('name')

returns "Store "

The # and everything following has been truncated.

Insight?

TIA,
Mike Wright

--
List: [hidden email]
Info: http://framework.zend.com/archives
Unsubscribe: [hidden email]


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: getRequest->()getUserParam conundrum

Konr Ness
The hash sign is a special character in URLs, indicating an anchor on
the page. So the # must be encoded to %23.

http://vm7/admin/location/deactivate/name/Store%20%232

Konr

On Wed, Oct 12, 2011 at 2:25 PM, Mike Wright <[hidden email]> wrote:

> Hi all,
>
> I need external brains for this one ;)
>
> I've got an ajax client-side, zf server-side application.
>
> Given this path:
>
>    http://vm7/admin/location/deactivate/name/Store%20#2
>
> ->getUserParam('name')
>
> returns "Store "
>
> The # and everything following has been truncated.
>
> Insight?
>
> TIA,
> Mike Wright
>
> --
> List: [hidden email]
> Info: http://framework.zend.com/archives
> Unsubscribe: [hidden email]
>
>
>

--
List: [hidden email]
Info: http://framework.zend.com/archives
Unsubscribe: [hidden email]


Loading...