Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author sevenspark

    (@sevenspark)

    Hi there,

    The out of the box option will be to use the CF7_URL option which will include the entire URL

    [dynamichidden url "CF7_URL"]

    If you want to get just the query string itself, you could use a custom shortcode like this

    add_shortcode( 'MY_URL_QUERY', 'my_url_query');
    function my_url_query(){
        return sanitize_text_field(parse_url($_SERVER['REQUEST_URI'], PHP_URL_QUERY));
    }

    And then use MY_URL_QUERY as your shortcode in your form tag.

    That said, I’d probably use the built in CF7_GET shortcode to pull individual values from the query string, assuming you know which keys you want included in the email.

    Hope that helps!

    Thread Starter walacky

    (@walacky)

    Thanks a lot, its working!

    Plugin Author sevenspark

    (@sevenspark)

    Awesome, glad it helped!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Is there any way to collect all the parameters after the domain name?’ is closed to new replies.