Hello Dan, Please try this.Let me know if you have any problem.
<HTML> <HEAD> <TITLE></TITLE> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#800080"> <script language="JavaScript"> function setChecked() { document.forms[0].r1value.value='on'; } function checkr1() { if(document.forms[0].r1value.value=='on') { alert("One of your radio button is selected"); return false; } else { alert("Please select one of the radio button"); return false; } } </script> <form onsubmit=checkr1()> <input type=radio name=r1 onclick=setChecked()> <input type=radio name=r1 onclick=setChecked()> <input type=radio name=r1 onclick=setChecked()> <input type=hidden name=r1value value=off> <input type=submit> </form> </BODY> </HTML> regards, SenthilVellan.P ----- Original Message ----- From: "Dan McCullough" <[EMAIL PROTECTED]> To: "PHP General List" <[EMAIL PROTECTED]> Sent: Friday, June 14, 2002 7:49 PM Subject: [PHP] Quick question > I have a form, and if someone doesnt fill in a field it returns and asks them to filling in the > missing field. I have made it so that the person doesnt lose everything, currently they will lose > radio button information or checkbox information. Can someone tell me how to best keep it so the > checkboxes stay checked or radio buttons stay selected. > > thanks, > > dan > > __________________________________________________ > Do You Yahoo!? > Yahoo! - Official partner of 2002 FIFA World Cup > http://fifaworldcup.yahoo.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php