Try something like this: http://pastie.org/1433020
A few things to note:
add_action("gform_post_submission_1", "post_submission_cookie", 10, 2);
The 1 after gform_post_submission_ is the ID of the form you'd like to run the function on.
$_POST["input_" . $field["1"]]
The $entry which is passed to the function by the hook array actually contains all the values submitted by the form so if you're trying to get the value of field ID 1, you can just use $entry[1].
Hope this helps!
Posted 13 years ago on Thursday January 6, 2011 |
Permalink