radio button

Results 1 to 2 of 2

Thread: radio button

  1. #1
    madhu Guest

    Default radio button

    i have a radio button . i also have a field in the database called Status.i have named my Radio Button as status.<BR>when the radio buton is checked , i am able to insert into the database , but when it is unchecked it gives me an error in &#039;Syntax&#039;.<BR>any suggestions?<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: radio button

    do you have "not allow null" for your Status field in the database? if yes, then take care of that.<BR>if a radio button is unchecked, then it does not have any value when you retrieve it.<BR>so what you can do is:<BR>status=request.form("status")<BR>if status="" then<BR> status="unchecked" &#039;or whatever.<BR>end if<BR>&#039;insert this value<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts