Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Yes/No button not working
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Yes/No button not working

 Post Reply Post Reply
Author
simflex View Drop Down
Groupie
Groupie
Avatar

Joined: 10 November 2002
Location: United States
Status: Offline
Points: 63
Post Options Post Options   Thanks (0) Thanks(0)   Quote simflex Quote  Post ReplyReply Direct Link To This Post Topic: Yes/No button not working
    Posted: 29 April 2003 at 7:35am

I need your urgent help, please.
I have a field called itemDesc. This field will ask a question and the user will either answer a yes or a no but NOT both.
So far, this is allowing a yes and no to checked at the same time.
Please take a look at the function.
Thank you!!

Function Build_PersonGrid(strGrid)
 Dim intCount, x

 If request.form("Count") = "" then
  'set default number of lines in the grid, in this case 5(!)
  intCount = 0
 else
  'retrieve current amount of lines in the grid, increment by 1
  intCount = Cint(request.form("Count") + 1)
 end if

 For x = 0 To intCount
  strGrid = strGrid & "<tr>" & vbNewLine
  strGrid = strGrid & "<td><input name=""txtItemDesc"&x&""" size=""70"" type=""text"" maxlength=""70"" value="""&request.form("txtItemDesc"&x)&"""></td>"& vbNewLine
  strGrid = strGrid & "<td><input name=""txtYes"" TYPE=radio  value="""&request.form("txtYes"&x)&"""></td>"& vbNewLine
  strGrid = strGrid & "<td><input name=""txtNo"" TYPE=radio value="""&request.form("txtNo"&x)&"""></td>"& vbNewLine
  strGrid = strGrid & "<td>"
 Next


 'set new Count, and action
 strGrid = strGrid & "<tr><td>"
 strGrid = strGrid & "<input type=""hidden"" name=""Count"" value="""&intCount&""">"&vbNewLine
 strGrid = strGrid & "<input type=""submit"" name=""cmd_AddNewLine"" value=""Add"">"& vbNewLine
 strGrid = strGrid & "<input type=""submit"" name=""cmd_Process"" value=""Process"">"& vbNewLine
 strGrid = strGrid & "</tr></td>"

 Build_PersonGrid = strGrid
End Function

Back to Top
simflex View Drop Down
Groupie
Groupie
Avatar

Joined: 10 November 2002
Location: United States
Status: Offline
Points: 63
Post Options Post Options   Thanks (0) Thanks(0)   Quote simflex Quote  Post ReplyReply Direct Link To This Post Posted: 29 April 2003 at 9:40am

please ignore this, i got it.

my dum mistake

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.