accessing values for form elements having the same name

Results 1 to 2 of 2

Thread: accessing values for form elements having the same name

  1. #1
    manpreet Guest

    Default accessing values for form elements having the same name

    i have a form in which there are a lot of checkboxex and i am putting these checkboxes based on sum condition . so i dont know at a given time how many of these checkboxes will be presented on the page(it depends on the database) . Also i have to assign the same "name" to all these checkboxes. <BR><BR>Now can someone tell me of a way n whichi can access all the diffrent values associated with the same "name" in the receiving script.<BR><BR>

  2. #2
    Sam Otto Guest

    Default RE: accessing values for form elements having the same name

    In each checkbox add a VALUE attribute. All the values will come back delimited by commas..<BR><BR>&#060;input type=checkbox name=xyz value=a> A<BR>&#060;input type=checkbox name=xyz value=b> B<BR>&#060;input type=checkbox name=xyz value=c> C

Posting Permissions

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