Title: Contact Form 7 Get and Show Parameter from URL
Author: Chad Huntley
Published: <strong>22 Dicembre 2013</strong>
Last modified: 2 Marzo 2015

---

Ricerca i plugin

Questo plugin **non è stato testato con le ultime 3 versioni principali (major releases)
di WordPress**. Potrebbe non essere più mantenuto, o supportato, e potrebbe presentare
problemi di compatibilità se utilizzato con versioni più recenti di WordPress.

![](https://s.w.org/plugins/geopattern-icon/contact-form-7-get-and-show-parameter-
from-url.svg)

# Contact Form 7 Get and Show Parameter from URL

 Di [Chad Huntley](https://profiles.wordpress.org/chuntley/)

[Scarica](https://downloads.wordpress.org/plugin/contact-form-7-get-and-show-parameter-from-url.0.9.7.zip)

 * [Dettagli](https://it.wordpress.org/plugins/contact-form-7-get-and-show-parameter-from-url/#description)
 * [Recensioni](https://it.wordpress.org/plugins/contact-form-7-get-and-show-parameter-from-url/#reviews)
 *  [Installazione](https://it.wordpress.org/plugins/contact-form-7-get-and-show-parameter-from-url/#installation)
 * [Sviluppo](https://it.wordpress.org/plugins/contact-form-7-get-and-show-parameter-from-url/#developers)

 [Supporto](https://wordpress.org/support/plugin/contact-form-7-get-and-show-parameter-from-url/)

## Descrizione

There are times when using the Contact Form 7 WordPress plugin where you need to
pass a parameter
 from the URL and into a hidden field or display it in the form.
This plugin is great for passing things such as order numbers, selected packages,
or even security information.

## Installazione

 1. Go to the “Plugins” section of your WordPress admin panel
 2. Click “Add New” at the top
 3. Click “Upload” at the top
 4. Upload the included zip file
 5. Activate the plugin through the ‘Plugins’ menu in WordPress
 6. For getting a parameter as a hidden text field, use [getparam value]
 7. For getting a parameter to display as text, use [showparam value]

The above examples assume a URL such as http://mywebsite.com/contact?value=hello.

If you are using a different parameter such as order=hello, use [getparam order]

## FAQ

  How do I add a Hidden Field?

When editing a form in Contact Form 7, enter the getparam shortcode. There is only
one valid parameter
 which is the name of the $_GET value.

[getparam value]

For example, if the URL is http://mysite.com/contact?ordernum=12345, the shortcode
will be:

[getparam ordernum]

Then when building the response email, you can pass the value with [ordernum]

  How do I show a $_GET value on the form?

When editing a form in Contact Form 7, enter the showparam shortcode. There is only
one valid parameter
 which is the name of the $_GET value.

[showparam value]

For example, if the URL is http://mysite.com/contact?ordernum=12345, the shortcode
will be:

[showparam ordernum]

You cannot pass a value to the response email using this method, to do that, you
will also have to add a hidden field.

## Recensioni

![](https://secure.gravatar.com/avatar/e51f1a0f4a79fc1e5f34d91f83a2f39b57e29288593fa9e9e70485f9e42fd9ff?
s=60&d=retro&r=g)

### 󠀁[Does work](https://wordpress.org/support/topic/does-work/)󠁿

 [AAA](https://profiles.wordpress.org/flag/) 8 Novembre 2016

Just works fine. Usage: 1. Create a form 7 as usual. 2. Then insert the form within
your page: [contact-form-7 id="9999" title="Your Form"] 3. Then within form 7 FORM
editor, you can use: [showparam productname] // this will just insert as text [getparam
productname] // this will insert a hidden field which you can use later 4. Within
form 7 EMAIL, you can use (along side with other form 7 code): Product name: [productname]
Message Body: [your-message] You call the form within web browser like so: http 
YOURSITE/form/?productname=HelloWorld

![](https://secure.gravatar.com/avatar/faa336df6cac1a6ceba962531a97e4e7b78c7611c65c6e9ccb3f1f14f4c8316b?
s=60&d=retro&r=g)

### 󠀁[Just works](https://wordpress.org/support/topic/just-works-314/)󠁿

 [michauko](https://profiles.wordpress.org/michauko/) 30 Settembre 2016

Just does the trick. You can get a $_GET value to check, for example, a key/mail
consistency in an "unsubscribe form". Thanks

 [ Leggi tutte le recensioni di 7 ](https://wordpress.org/support/plugin/contact-form-7-get-and-show-parameter-from-url/reviews/)

## Contributi e sviluppo

“Contact Form 7 Get and Show Parameter from URL” è un software open source. Le persone
che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.

Collaboratori

 *   [ Chad Huntley ](https://profiles.wordpress.org/chuntley/)

[Traduci “Contact Form 7 Get and Show Parameter from URL” nella tua lingua.](https://translate.wordpress.org/projects/wp-plugins/contact-form-7-get-and-show-parameter-from-url)

### Ti interessa lo sviluppo?

[Esplora il codice](https://plugins.trac.wordpress.org/browser/contact-form-7-get-and-show-parameter-from-url/)
segui il [repository SVN](https://plugins.svn.wordpress.org/contact-form-7-get-and-show-parameter-from-url/),
segui il [log delle modifiche](https://plugins.trac.wordpress.org/log/contact-form-7-get-and-show-parameter-from-url/)
tramite [RSS](https://plugins.trac.wordpress.org/log/contact-form-7-get-and-show-parameter-from-url/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 0.9.7

 * Fixed XSS issue, thanks Ryan Hellyer (https://geek.hellyer.kiwi/) for the heads
   up!

#### 0.9.6

 * Update shortcode init for Contact Form 7 3.7.2

#### 0.9.5

 * Release Contact Form 7 module as a plugin

## Meta

 *  Versione **0.9.7**
 *  Ultimo aggiornamento **12 anni fa**
 *  Installazioni attive **800+**
 *  Versione WordPress ** 3.0.1 o superiore **
 *  Testato fino alla versione **4.1.42**
 *  Lingua
 * [English (US)](https://wordpress.org/plugins/contact-form-7-get-and-show-parameter-from-url/)
 * Tag
 * [contact form 7](https://it.wordpress.org/plugins/tags/contact-form-7/)
 *  [Visualizzazione avanzata](https://it.wordpress.org/plugins/contact-form-7-get-and-show-parameter-from-url/advanced/)

## Valutazioni

 5 su 5 stelle.

 *  [  7 recensioni a 5-stelle     ](https://wordpress.org/support/plugin/contact-form-7-get-and-show-parameter-from-url/reviews/?filter=5)
 *  [  0 recensioni a 4-stelle     ](https://wordpress.org/support/plugin/contact-form-7-get-and-show-parameter-from-url/reviews/?filter=4)
 *  [  0 recensioni a 3-stelle     ](https://wordpress.org/support/plugin/contact-form-7-get-and-show-parameter-from-url/reviews/?filter=3)
 *  [  0 recensioni a 2-stelle     ](https://wordpress.org/support/plugin/contact-form-7-get-and-show-parameter-from-url/reviews/?filter=2)
 *  [  0 recensioni a 1-stelle     ](https://wordpress.org/support/plugin/contact-form-7-get-and-show-parameter-from-url/reviews/?filter=1)

[La tua recensione](https://wordpress.org/support/plugin/contact-form-7-get-and-show-parameter-from-url/reviews/#new-post)

[Vedi tutte le recensioni](https://wordpress.org/support/plugin/contact-form-7-get-and-show-parameter-from-url/reviews/)

## Collaboratori

 *   [ Chad Huntley ](https://profiles.wordpress.org/chuntley/)

## Supporto

Hai qualcosa da dire? Ti serve aiuto?

 [Chiedi nel forum di supporto](https://wordpress.org/support/plugin/contact-form-7-get-and-show-parameter-from-url/)