Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #12292 > unrolled thread

URL linking to 3d array

Started byrichard <noreply@example.com>
First post2013-12-16 14:15 -0500
Last post2013-12-17 00:42 +0000
Articles 9 — 6 participants

Back to article view | Back to comp.lang.php


Contents

  URL linking to 3d array richard <noreply@example.com> - 2013-12-16 14:15 -0500
    Re: URL linking to 3d array Arno Welzel <usenet@arnowelzel.de> - 2013-12-16 20:45 +0100
      Re: URL linking to 3d array richard <noreply@example.com> - 2013-12-16 15:12 -0500
        Re: URL linking to 3d array Doug Miller <doug_at_milmac_dot_com@example.com> - 2013-12-16 20:30 +0000
        Re: URL linking to 3d array Christoph Michael Becker <cmbecker69@arcor.de> - 2013-12-17 02:04 +0100
        Re: URL linking to 3d array Arno Welzel <usenet@arnowelzel.de> - 2013-12-17 08:15 +0100
          Re: URL linking to 3d array Evan Platt <evan@theobvious.espphotography.com.invalid> - 2013-12-17 08:51 -0800
    Re: URL linking to 3d array Doug Miller <doug_at_milmac_dot_com@example.com> - 2013-12-16 20:30 +0000
    Re: URL linking to 3d array Denis McMahon <denismfmcmahon@gmail.com> - 2013-12-17 00:42 +0000

#12292 — URL linking to 3d array

Fromrichard <noreply@example.com>
Date2013-12-16 14:15 -0500
SubjectURL linking to 3d array
Message-ID<16w169ay7izb9$.1qkw1yyj0ql80.dlg@40tude.net>
$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?

[toc] | [next] | [standalone]


#12293

FromArno Welzel <usenet@arnowelzel.de>
Date2013-12-16 20:45 +0100
Message-ID<52AF5865.5000102@arnowelzel.de>
In reply to#12292
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.


-- 
Arno Welzel
http://arnowelzel.de
http://de-rec-fahrrad.de

[toc] | [prev] | [next] | [standalone]


#12294

Fromrichard <noreply@example.com>
Date2013-12-16 15:12 -0500
Message-ID<9cotre25ot3a.ngclvn4355vk$.dlg@40tude.net>
In reply to#12293
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.

[toc] | [prev] | [next] | [standalone]


#12295

FromDoug Miller <doug_at_milmac_dot_com@example.com>
Date2013-12-16 20:30 +0000
Message-ID<XnsA2989DB0C92AEdougmilmaccom@78.46.70.116>
In reply to#12294
richard <noreply@example.com> wrote in news:9cotre25ot3a.ngclvn4355vk$.dlg@
40tude.net:

> 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.

What did it say?

> 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.

What have you tried? What happened when you tried it?

[toc] | [prev] | [next] | [standalone]


#12299

FromChristoph Michael Becker <cmbecker69@arcor.de>
Date2013-12-17 02:04 +0100
Message-ID<52afa326$0$6570$9b4e6d93@newsspool4.arcor-online.net>
In reply to#12294
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

[toc] | [prev] | [next] | [standalone]


#12300

FromArno Welzel <usenet@arnowelzel.de>
Date2013-12-17 08:15 +0100
Message-ID<52AFFA12.6060700@arnowelzel.de>
In reply to#12294
richard, 2013-12-16 21:12:

> 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.

Then why do you ask?

> Is the proper method to use something like page.php?John%32Smith allowed?

Yes - but %32 is not "space".

Also see <http://www.php.net/manual/en/function.urlencode.php>


-- 
Arno Welzel
http://arnowelzel.de
http://de-rec-fahrrad.de

[toc] | [prev] | [next] | [standalone]


#12301

FromEvan Platt <evan@theobvious.espphotography.com.invalid>
Date2013-12-17 08:51 -0800
Message-ID<d601b992obvk7otdoi20mb7ovfe28i718f@4ax.com>
In reply to#12300
On Tue, 17 Dec 2013 08:15:30 +0100, Arno Welzel <usenet@arnowelzel.de>
wrote:

>Yes - but %32 is not "space".

Shh! I was waiting to see how long it would take him to figure that
one out himself.

My guess was sometime after the completion of his dome home.
-- 
To reply via e-mail, remove The Obvious and .invalid from my e-mail address.

[toc] | [prev] | [next] | [standalone]


#12296

FromDoug Miller <doug_at_milmac_dot_com@example.com>
Date2013-12-16 20:30 +0000
Message-ID<XnsA2989DB7A95B6dougmilmaccom@78.46.70.116>
In reply to#12292
richard <noreply@example.com> wrote in news:16w169ay7izb9$.1qkw1yyj0ql80.dlg@
40tude.net:

> $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?

RTFM.

[toc] | [prev] | [next] | [standalone]


#12298

FromDenis McMahon <denismfmcmahon@gmail.com>
Date2013-12-17 00:42 +0000
Message-ID<l8o6mf$tli$2@dont-email.me>
In reply to#12292
On Mon, 16 Dec 2013 14:15:01 -0500, richard wrote:

> $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?

The actual question asked has nothing to do with (a) php or (b) 3d 
arrays. The question as asked is actually an html question:

"How do I encode spaces in the query part of a url?"

It can however be turned into a php question:

"Is there a php function that can automatically encode spaces in the 
query part of a url?"

I would suggest you spend a significant amount of time (a) studying the 
examples when you find the function and (b) comparing the different 
functions that are mentioned, because if you don't (and possibly even if 
you do) I know exactly what your next fuck up is going to be.

And I bet a few other people have a damn good idea too.

-- 
Denis McMahon, denismfmcmahon@gmail.com

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.php


csiph-web