php - How to separate value $_GET

625

I have a problem with getting one value. I'm calling my script with:

xxx.php?action=activate&timestamp=1415550311&gate=smscz&pricing=czchest1
&sum=29.00&currency=czk&days=0&identifiers%5Bglobal%5D%5Btext%5D=NomisCZ&key=czchest1`

$action = $_GET['action'];
$pricing = $_GET['pricing'];

etc.

but I have problem with getting value&identifiers. I need only value NomisCZ from this &identifiers%5Bglobal%5D%5Btext%5D=NomisCZ.

164

Answer

Solution:

What you have in your request, url decoded

identifiers[global][text]=NomisCZ&key=czchest1

To access NomisCZ use this

$_GET['identifiers']['global']['text'];

People are also looking for solutions to the problem: session - PHP: Create a simple log in form without MySQL

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.