How to write the php webhook code for Full Name?

  • Profile Image
    presetschool
    Asked on September 14, 2013 at 03:59 PM

    Hi.

    The code sample found here: http://pastebin.com/raw.php?i=1SZyZ4uM provides a good implementation of what I need.

    It works fine but I want I seem to have an isssue with the NAME field. How would I pull first name only in the example provided in the pastebin.

    I tried this: $obj['q1_name[first]']

    I used Requestbin to find the actual values for my form but I cannot figure this out. Actually the name field just does not output anything for me yet. Trying to troubleshoot. 

  • Profile Image
    EltonCris
    Answered on September 14, 2013 at 04:36 PM

    Replace it with

    $obj['q1_name'][first]

    This should work. Make sure to put the index "first" or "last" (for lastname) at the end part.

    Regards!