Is there any way to collect all the parameters after the domain name?

[ad_1]

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!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer