Getting form data from Foundation radio button


(Michael Forte) #1

Hi,

I’m hoping somebody can help me here with this form issue I’m having. I’m using Foundation with the Foundation Forms Checkbox stack with the type set as Radio and option count of 3 (i.e., 3 different values). Basically, it’s a 3 radio button field with values of 1, 2, and 3 and the Field Name of ils.

On my search results page I read in the submitted form fields with this php code ils = "{_POST[‘ils’]}";

This should assign the selected radio button value of 1, 2, or 3 based on the submission to the $ils variable. The problem is this isn’t happening. From what I am seeing in the source code, the Field name is NOT ils like I wrote but it’s making it an array of ils[ ] even though there is only one value.

My question to the group is what php code do I use to capture that value for ils?

Thanks,
Mike