Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Prevent user fr select a dynamic checkbox
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Prevent user fr select a dynamic checkbox

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

Joined: 26 December 2002
Location: Malaysia
Status: Offline
Points: 169
Post Options Post Options   Thanks (0) Thanks(0)   Quote ngaisteve1 Quote  Post ReplyReply Direct Link To This Post Topic: Prevent user fr select a dynamic checkbox
    Posted: 17 April 2003 at 9:54pm

Do While Not rs.EOF
response.write "<tr><td>" & rs("stock_code") & " </td>"
response.write "<td>" & rs("stock_description") & "</td>"
response.write "<td>" & rs("qty_requested") & " </td>"
response.write "<td>" & rs("qty_issued") & " </td>"
response.write "<td>" & rs("stock_measurement") & "</td>"
response.write "<td>" & rs("dateyy_requested") & "/" & Right("0" & rs("datemm_requested"),2) & "/" & Right("0" & rs("datedd_requested"),2) & "</td>"
response.write "<td>" & rs("status") & " </td>"
response.write "<td><input type='checkbox' name='list' value=" & rs("requisition_id") & "></td></tr>"
rs.MoveNext
Loop

If I have a while loop like above, how do I prevent user from selecting the checkbox if status = "Issued"? Thanks.

Back to Top
ultramods View Drop Down
Groupie
Groupie
Avatar

Joined: 08 January 2003
Location: Scotland
Status: Offline
Points: 146
Post Options Post Options   Thanks (0) Thanks(0)   Quote ultramods Quote  Post ReplyReply Direct Link To This Post Posted: 18 April 2003 at 2:33am

Dim disabled

IF status = "issued" THEN

    disabled="disabled"

END IF

response.write ("<td><input type='checkbox' name='list' value=" & rs("requisition_id") & disabled & " ></td></tr>")

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.