Use isset function to get multiple URL parameters
P粉019353247
P粉019353247 2023-09-14 16:14:18
0
1
505

I want to know how to get two parameters from URL. I have a url like this: www.example.com/simplepay-cancel/?r=eyJyIjo1MDE3LCJ0Ijo1MDIyOTI5NTIsImUiOiJDQU5DRUwiLCJtIjoiT01TNTMxNDU1MDEiLCJvIjoiMTE2Njk4ODAyOTk1NjMwIn0=&s=h/kKbYJWL3EYZiW/fG xaUh Ekx3d7E0EGBCieMGUjWlT+9tUhKBDJU4JglMVpYloj

It contains two parameters:rands. Both are encrypted.

I want to get the following:

if ( (isset($_GET['r']) && isset($_GET['s']))) { echo 'Hello'; }

It only works if I set therparameter to a URL. This is a Wp site and I set the id assparameter and it fails and goes to 404 page.

How to get these two parameters?

Thanks!

P粉019353247
P粉019353247

reply all (1)
P粉451614834

The following example will help you "Get multiple parameters with the same name from URL in PHP".

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!