Access multiple GET parameters in Slim Framework v3
<p>I have a script code which will redirect to</p>

<pre><code>http://localhost:8080/generated/sample/ + $('form.wpcf7-form').serialize();
</code></pre>

<p>and a sample generated url of that is </p>

<pre><code>http://localhost:8080/generated/sample/_wpcf7=222&amp;_wpcf7_version=4.5.1&amp;_wpcf7_locale=en_US&amp;_wpcf7_unit_tag=wpcf7-f222-p37-o1&amp;_wpnonce=35162dc550&amp;your-name=Robert+Soriano&amp;your-email=sorianorobertc%40gmail.com&amp;mobile-number=39174535417
</code></pre>

<p>The serialized value is from the <code>Contact Form 7</code> plugin of WordPress.</p>

<p>In my slim route I have</p>

<pre><code>&lt;?php
// Routes

$app-&gt;get('/{name}', function ($request, $response, $args) {
    // Sample log message
    $this-&gt;logger-&gt;info("Slim-Skeleton '/' route");

    // Render index view
    return $this-&gt;renderer-&gt;render($response, 'index.phtml', $args);
});

$app-&gt;get('/generated/sample/', function ($request, $response, $args) {
    return $args['your-email'];
    // How to access different parameters here?
});
</code></pre>

<p>And what I get is this</p>

<p><a href="https://i.stack.imgur.com/Z3fVt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Z3fVt.png" alt="enter image description here"></a></p>

<p>It's like the first route is working for that but not the route that I want.</p>

<p>How can I access those parameters like the name, email, and all of it in my route?</p>

<p>Any help would be much appreciated.</p>