Re: Quick question
| From: | SenthilVelavan | Date: | Sat, 15 Jun 2002 03:45:43 +0000 |
| Subject: | Re: Quick question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-102309@lists.php.net to get a copy of this message | ||
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" <McWC@rocketmail.com>
To: "PHP General List" <php-general@lists.php.net>
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
>