GET variables splits in array

Problems with the Windows version of XAMPP, questions, comments, and anything related.

GET variables splits in array

Postby Tiddo » 03. November 2008 20:21

When i'm sending some GET variables in the url (like www.thispage.com/index.php?variable=thisvalue), and I try to get those variables using $_GET["variable"] I get no result. So I tried print_r($_GET) and it returns:
Array ( [v] => [ri] => [ble] => thisv [lue] => )
ive noticed that everytime there is an "a" in the variable, it makes a new array object (the => thing (sorry my english is very bad, dont know how to describe it)).

anyone knows what I have to change in the php.ini to get the correct results?
Tiddo
 
Posts: 7
Joined: 03. October 2008 13:46

Postby Tiddo » 03. November 2008 20:50

i found the next thing:
i have set the arg_separator.output and input like this:
arg_separator.output = "&"
arg_separator.input = "&"
the problem is that php uses every character as an arg separator instead of the whole string as one arg separator. Does anyone knows how to change this? (i dont want to use just & as the separator).
Tiddo
 
Posts: 7
Joined: 03. October 2008 13:46

Postby Tiddo » 03. November 2008 20:55

nvm, fixed it. Input should be &, only output should be $amp;
Tiddo
 
Posts: 7
Joined: 03. October 2008 13:46


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 70 guests