Hello All,
Trying to figure out why when I include the page that contains this
code, I'm not able to get the $calling_page populated with any values.
Any help appreciated...
?
# Dynamic Content based in page
$calling_page = $_GET['page'];
# Home Page
Hi to all.
I pass parameters via querystring in this way:
page.php?ID=5ID=6ID=23
In $_GET[ID] I get only the value 23
I am surprised 'cause in ASP I get 5,6,23.
Is there a way to make things working to have a sequence of values separated
by commas?
Am I doing something wrong in PHP?
On Sun, 28 Apr 2002, Evan wrote:
I pass parameters via querystring in this way:
page.php?ID=5ID=6ID=23
In $_GET[ID] I get only the value 23
I am surprised 'cause in ASP I get 5,6,23.
Is there a way to make things working to have a sequence of values separated
by commas?
On 28 Apr 2002 at 23:30, Evan wrote:
I pass parameters via querystring in this way:
page.php?ID=5ID=6ID=23
In $_GET[ID] I get only the value 23
Unless you set ID as an array, which you haven't, you'll only keep
the last value. The simple answer is to have something like:
Thats because that query string is like saying:
$ID = 5;
$ID = 6;
$ID = 23;
If this is a form that you can't change the ID field names to ID1, ID2, ID3,
etc. (which would probably be best) you could try something like:
?php
$args = explode( , $QUERY_STRING);
foreach ( $args as $argz )
{
5 matches
Mail list logo