A little explanation on this HTML script.ok,why i type "value= 'male'>Male" or "value= 'female'>Female".just concentrate at ">Male" this one is for display.if we change it to Maleloolo,then it will display like this:

Noticethis one : $male_status = 'unchecked' or $female_status = 'unchecked'.Okey for this one,this line will unchecked the value of radio button.quite blurry ryte.oke here is the example:before we click the submit button.The blue point is at 'Male'.

after.what happen is the blue point is gone!so to keep it display even we already click the submit button.

Please,modify your HTML form like this (the bold and green is new code):