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.

help with post_image field

  1. erezabou
    Member

    Hi,

    I would like to retreive filename from post_image field (input_1) but this is not working.

    What should I change?

    add_action("gform_pre_submission_2", "pre_submission_handler");
    function pre_submission_handler($form){
    echo $_POST["input_1"];
    }

    Posted 13 years ago on Friday May 18, 2012 | Permalink
  2. David Peralty

    What are you attempting to do with the filename? Currently, you aren't returning anything back through the function. You would be looking for something like:
    return $_POST["input_1"];

    Posted 13 years ago on Monday May 21, 2012 | Permalink