FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » URL linking to 3d array
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: URL linking to 3d array [message #184261 is a reply to message #184256] Tue, 17 December 2013 01:04 Go to previous messageGo to previous message
Christoph Michael Bec is currently offline  Christoph Michael Bec
Messages: 207
Registered: June 2013
Karma:
Senior Member
richard wrote:

> On Mon, 16 Dec 2013 20:45:41 +0100, Arno Welzel wrote:
>
>> richard, 2013-12-16 20:15:
>>
>>> $test['John Smith']['a']['b']="data";
>>>
>>> What is the proper way to link this in the URL?
>>> page.php?name=John Smith ???????
>>>
>>> Are space allowed like that or not?
>>
>> Sigh.... read the documentation. It is quite easy to find out, what is
>> allowed for an URL and what not.
>
> I have.
> Is the proper method to use something like page.php?John%32Smith allowed?
> I would think so since that is proper for file names and such.

You may consider to try to express yourself more precisely -- this would
help others, but above all it will help you. :)

What you're looking for in this case is the term "percent encoding"[1]
and probably the related PHP functions urlencode()[2] and rawurlencode().

[1] <http://en.wikipedia.org/wiki/Percent-encoding>
[2] <http://www.php.net/manual/en/function.urlencode.php>

--
Christoph M. Becker
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to code () inside quotes
Next Topic: foreach problem
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 08 05:34:24 GMT 2024

Total time taken to generate the page: 0.03956 seconds