[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!
