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.

Radio Entry Value not Price

  1. How can I separate the value from the price in the entry object of a radio input?

    I am using this with the paypal fulfillment hook, and using the selected membership type from a radio field to populate a user meta field, however I am getting something like this:

    membership 1|250 i.e. the value | price

    Code using:

    update_user_meta( $id, 'membership', $entry["2"] );

    Posted 11 years ago on Thursday February 28, 2013 | Permalink
  2. *solved

    Solution for others:

    [php]
    $entry_var = $entry["1"];
    $entry_vars = explode("|", $entry_var);
    $value = $entry_vars[0];
    Posted 11 years ago on Friday March 1, 2013 | Permalink
  3. David Peralty

    I'm glad you figured it out, and thanks for posting your solution.

    Posted 11 years ago on Friday March 1, 2013 | Permalink