[PHP] get question

2012-08-27 Thread Jack S
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

[PHP] GET question

2002-04-28 Thread Evan
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?

Re: [PHP] GET question

2002-04-28 Thread Miguel Cruz
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?

Re: [PHP] GET question

2002-04-28 Thread David Freeman
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:

Re: [PHP] GET question

2002-04-28 Thread Evan Nemerson
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 ) {