Jump to content

really weird problem


Eugene

Recommended Posts


I have the following code at the top of the index page.

 

<?PHP
@header("Content-Type: text/html;charset=UTF-8;");
print_r($_GET);
?>

 

The get variables are "page" and "option" let's say.

 

Everytime i got to the page, i get:

 

Array
(
    

 => article
    [option] => edit
)
Array
(
    

 => article
    [option] => edit
)
Array
(
    

 => article
    [option] => edit
)

 

I'm as stumped as you get, any help will be appreciated greatly. Thanks.

Link to comment
https://forums.phpfreaks.com/topic/44435-really-weird-problem/
Share on other sites

What happens when you foreach through $_GET...try this

 

foreach ($_GET as $key=>$val)
      print $key . " " . $val . "<br />";

 

If it only goes through the array once like it should than chances are the print_r function is doing something funky that is probably a server-specific problem.

Link to comment
https://forums.phpfreaks.com/topic/44435-really-weird-problem/#findComment-216353
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.