[thelist] sending vars to php-page

jan guichelaar [artmiks] jan at artmiks.nl
Mon Nov 10 07:28:13 CST 2003


thanx Andrew
The  $_GET array is what i was looking for


jan at artmiks.nl

====================
Artmiks [image builders]
http://www.artmiks.nl
====================
recent projects
http://www.kluun.nl
http://www.marryyourpet.com
http://www.wereldpost.nl
http://www.margeting.nl
====================
----- Original Message -----
From: "Andrew Seguin" <asegu at borg.darktech.org>
To: <thelist at lists.evolt.org>
Sent: Monday, November 10, 2003 1:55 PM
Subject: Re: [thelist] sending vars to php-page


> The trick for that is you have to read through the keys of $_GET rather
> then the values.
>
> array_keys() could help you somewhat there, as it returns the array of all
> keys:
>   addr.php?1234 =>
>     $_GET == Array('1234' => '');
>     array_keys($_GET) == Array(0 => '1234');
>
> If you know exactly what key you want (maybe passing a language flag '?en'
> or '?fr' to a template, then you can test directly if it is set or not:
>     is_set($_GET['en']) //english.
>     is_set($_GET['fr']) //french.
> is_set works, empty would not as the value is empty.
>
> Hope this helps,
> Andrew
>
> >
> >
> > Hi all
> >
> > Sometime i see a url like this :
> >
> > // test.php?1234567890
> >
> > Instead of :
> >
> > // test.php?id=1234567890
> >
> >
> > Does anybody knows how this works,
> > or how you can read this vars without knowing their name?
> >
> > thanx
> >
> > jan
> >
> >
> >
> >
> >
> > jan at artmiks.nl
> >
> > ===================Artmiks [image builders]
> > http://www.artmiks.nl
> > ===================recent projects
> > http://www.kluun.nl
> > http://www.marryyourpet.com
> > http://www.wereldpost.nl
> > http://www.margeting.nl
> > ===================--
> > * * Please support the community that supports you.  * *
> > http://evolt.org/help_support_evolt/
> >
> > For unsubscribe and other options, including the Tip Harvester
> > and archives of thelist go to: http://lists.evolt.org
> > Workers of the Web, evolt !
> >
> >
>
> --
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
>
>



More information about the thelist mailing list