I am using forms in html there are some radio buttons in it too, when the form is incomplete and user press submit button, server redirects(using header) the user to the form again and says to fill the for completely, when the user came back to the page the data he had already filled it should have been there, i have done this in case of name and email but it is difficult in case of radio buttons
header("location:main.php?nm=$name&email=$em&gender=$gen&paf=$paf&msg=please fill form");
form code
Gender:
<input type="radio" name="gender" value="Male" >Male
<input type="radio" name="gender" value="Female" >Female
<input type="radio" name="gender" value="Other" >Other