$_GET function

Hey all, Im trying to capture 3 strings of data using the $_GET function with this info

file.php?data=b65743cd-f8b6-0729-57cb-d089d3060e95?region=Kitster?status=up

i need to claim them as 3 seperate values

[php]
$data = $_GET[‘data’];
$region = $_GET[‘region’];
$status = $_GET[‘status’];
[/php]

only when I echo data it returns this

b65743cd-f8b6-0729-57cb-d089d3060e95?region=server1?status=up
I need it to be
data
b65743cd-f8b6-0729-57cb-d089d3060e95
region
server1
status
up

Anny suggestions? Thanks. The data is not of a secure nature so the _GET function is perfect

Got it, use & instead of ? They should put that syntax in more places :)

Yes, question mark tells the parser there is get data to be gotten and the & is the separator between keys and values.

This post was more for others benefit that maybe having similar troubles.

Sponsor our Newsletter | Privacy Policy | Terms of Service