javascript - Radio button returning undefined -


i'm having problem submitting form values php script not passing radio buttons reason. i've read several many posts on here problem, weren't selecting radio buttons on submission. form has 1 of radio buttons selected default there's no way can return undefined. here's html:

<input type='radio' name='bfilterhistorydate' id='bfilterhistorydatebefore' value='before'  checked /> <input type='radio' name='bfilterhistorydate' id='bfilterhistorydateafter' value='after' /> 

here's php:

print_r($_post); 

here's returned output:

array ( [btnhistoryclear] => * [btnhistoryadd] => + [btnhistorydel] => - [btnhistoryupdate] => update [hidhistoryid] => 0 [ehistorydate] =>  [shistoryaction] => purchased [shistorytag] =>  [shistorynote] =>  [sfilterhistorycreator] => 1 [bfilterhistorydatebefore] => undefined [bfilterhistorydateafter] => undefined [sfilterhistorydate] => 2014-6-26 [sfilterhistoryaction] =>  [sfilterhistorytag] =>  [asset] => 71 ) 

as can see, form values being passed! have no clue what's radio buttons. appreciated!

it's because you've created 2 different radio button groups having different ids. try removing id both of them (as it's not needed) or make ids same. wont matter, change of single quotes double quotes in compliance html spec.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -