Title: array to string conversion shortcode.php
Last modified: January 24, 2017

---

# array to string conversion shortcode.php

 *  [vtamas](https://wordpress.org/support/users/vtamas/)
 * (@vtamas)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/array-to-string-conversion-shortcode-php/)
 * Hello,
 * I have a $POST array which has values. I would like to post these valuse in contact
   form 7.
    I did this: [dynamictext dynamictext-12 “CF7_POST key=’service'”] After
   it I get this error message: Notice: Array to string conversion in /wordpress/
   wp-includes/shortcodes.php on line 345
 * What’s wrong?
    Thank you Tamas

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [sevenspark](https://wordpress.org/support/users/sevenspark/)
 * (@sevenspark)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/array-to-string-conversion-shortcode-php/#post-8692091)
 * Hi Tamas,
 * I’m not sure with just that info.
 * Are you sure the data has actually been POSTed to the server? The shortcode refers
   to the $_POST array, not just any array called $POST.
 *  Thread Starter [vtamas](https://wordpress.org/support/users/vtamas/)
 * (@vtamas)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/array-to-string-conversion-shortcode-php/#post-8692190)
 * Hi sevenspark,
 * Yes I’m sure. I have two variables what I post with $_POST:
    $service = isset(
   $_POST[‘service’]) ? $_POST[‘service’] : ”; $age= isset($_POST[‘age’]) ? $_POST[‘
   age’] : ”;
 * In the form extension I wrote:
    [dynamictext dynamictext-716 “CF7_POST key=’age'”]
 * [dynamictext dynamictext-421 “CF7_POST key=’service'”]
 * The result:
    The value of age appears. The values of servis don’t appear.
 * I checked with FF developer console and I see the values of both variables.
 * I’m sure, I do it anything wrong, but I don’t know what.
    Thank you
 *  Plugin Author [sevenspark](https://wordpress.org/support/users/sevenspark/)
 * (@sevenspark)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/array-to-string-conversion-shortcode-php/#post-8697199)
 * Hmm, can you send me the exact content of the data you’re posting so I can try
   to recreate it?
 * You mentioned that “age” appears but “servis” does not. However, the key you’re
   using is “service”, not “servis”. Are you sure the key of the data you’re posting
   and the key you’re using in the shortcode are identical?
 *  Thread Starter [vtamas](https://wordpress.org/support/users/vtamas/)
 * (@vtamas)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/array-to-string-conversion-shortcode-php/#post-8697558)
 * Servis is just mistyping.
 * Please give me an email address and I send you the detailed data. Thank you!
 *  Plugin Author [sevenspark](https://wordpress.org/support/users/sevenspark/)
 * (@sevenspark)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/array-to-string-conversion-shortcode-php/#post-8720620)
 * You can send it here if you want: [http://sevenspark.com/about](http://sevenspark.com/about).
   Please reference this topic

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘array to string conversion shortcode.php’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7-dynamic-text-extension/assets/icon-256x256.
   png?rev=3019574)
 * [Contact Form 7 - Dynamic Text Extension](https://wordpress.org/plugins/contact-form-7-dynamic-text-extension/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7-dynamic-text-extension/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7-dynamic-text-extension/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7-dynamic-text-extension/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7-dynamic-text-extension/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7-dynamic-text-extension/reviews/)

## Tags

 * [array](https://wordpress.org/support/topic-tag/array/)
 * [post](https://wordpress.org/support/topic-tag/post/)

 * 5 replies
 * 2 participants
 * Last reply from: [sevenspark](https://wordpress.org/support/users/sevenspark/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/array-to-string-conversion-shortcode-php/#post-8720620)
 * Status: not resolved