PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

get values of selected checkbox fields

  1. fpf
    Member

    Hi,

    I tried to get the values of the selected checkbox fields to post them in a customized e-mail notification by using this code in functions.php:
    http://www.pastie.org/3471899

    The form looks like this:
    http://imageshack.us/photo/my-images/444/unbenannt1oe.jpg/

    The form-ID of the checkbox is 3, respectively the three value-IDs should be "3.1", "3.2" and "3.3".

    If I use this code, I don't get anything back.
    What is wrong with this? Unfortunately I'm new to PHP programming...

    Any help is greatly appreciated!
    Thanks!

    P.S.: I'm using the current version of GF

    Posted 12 years ago on Monday February 27, 2012 | Permalink
  2. fpf
    Member

    I solved the problem...

    I used $value1= rgpost('input_160.1');
    istead of
    $value1 = rgpost('input_160_1'); (with _ )

    Posted 12 years ago on Tuesday February 28, 2012 | Permalink