Using PHP, and I am trying to get the value of an Input field by getting the Input name.
I have a Gravity Form poll which has two radio button inputs.
(Apparently in Gravity Form, polls are not treated as radio buttons, so I cannot set the value from the form edit or creation.)
In the Chrome inspector, I can see the two inputs which look like this:
<input name="input_1" type="radio" value="gpoll72c" id="choice_1234_1_0">
<input name="input_1" type="radio" value="gpoll288" id="choice_1234_1_1">
I need to know which of these two poll radio buttons were selected upon the poll (form) submission.
I tried to use $_GET['input_1']
.
I used an alert()
which only displayed a blank window.
I was hoping to at least see either gpoll72c
or gpoll288
in the alert, but nothing.
Is there another way I can do this? Am I doing this wrong? If so, how can I fix it?
Please help.
You need to sign in to view this answers
Leave feedback about this