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.

Can I Pass values from fields in a post (from a submitted form)?

  1. Hello,
    I want an editor to fill out a form with some options for a meeting. The post from the form will be viewable by members. I would like to have a link in the post to a second form where the member may respond. The second form should contain the values from the options in form 1.
    Is this possible? I have been reading about the hooks and pre-render techniques and have not seen this.
    Thank you for any clarity on this.
    Nancy

    Posted 11 years ago on Monday November 19, 2012 | Permalink
  2. David Peralty

    You could definitely do this, but you would have to create PHP relating to grabbing the details from the WordPress post, and building your URL to your second form with query strings that the second form could pick up on. For example, if you wanted to pass the post ID number, you would do something like

    $posttitle = //whatever function WordPress Post titles can be accessed by
    $redirurl = "http://secondform.com/formurl.php?title="'. $posttitle .'"&...

    Then in your second form, you would have a field that can be Dynamically Populated with the name of title.

    Hope it helps!

    Posted 11 years ago on Monday November 19, 2012 | Permalink