naming a checkbox dynamically

Results 1 to 2 of 2

Thread: naming a checkbox dynamically

  1. #1
    rinku Guest

    Default naming a checkbox dynamically

    Can i name a checkbox dynamically,i.e,based on some condition<BR>

  2. #2
    Join Date
    Dec 1969
    Posts
    1,388

    Default RE: naming a checkbox dynamically

    Yes. I&#039ve used loops to name a user-defined number of items before. You can use something like this: <BR>&#060;% if session("temp") = true then %&#062;<BR>&#060;input type=checkbox name=first&#062;<BR>&#060;% else %&#062;<BR>&#060;input type=checkbox name=second&#062;<BR>&#060;%end if%&#062;<BR>OR like this:<BR>&#060;input type=checkbox name="&#060;%session("nameforcheckbox")%&#062;" &#062;<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
  •