Why is the input type = radio on this page is not getting the value assigned to it after the user clicks on the related selection?
Here is the page under development:
dreamdates.com - TOTALLY FREE online dating service - date singles ready for romance and love
You are testing data.mygender.value which is undefined as data.mygender is an array and not a single entry.
You should be testing data.mygender[data.myGender.selectedIndex].value in order to read the value of the entry in the array that is currently selected.
But mygender is an input of Radio type and NOT checkbox type, so it is not in an array.
I mean to read its value via Php for example one would do:
$mygender = $_POST['mygender'];
1- I have never seen this in case of Radio value retrieval
2- what would selectedIndex be?
Your statement is correct for server side languages since only the selected entry gets passed to the server from radio buttons.
Ok, thanks for clarifying that.
I tell you as a developer one learns a few new things per day