A community for students.

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

BGrg007

  • one year ago

$php/html question. If I had more than one checkbox in each row in a table, let's say, I had 10 checkboxes in each row of a table, does each checkbox in each row have its own unique array name or all 10 checkboxes in each row have one name? example: for($i = 1; $i<=10; $i++){ <input type = checkbox name =animal[] value = $i>;}

  • This Question is Closed
  1. Lyrae
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 1

    Yes, checkboxes in the same group have the same name and some value. See: http://www.w3schools.com/tags/att_input_checked.asp

  2. BGrg007
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Then, how can I check which checkboxes in each row has been checked? I've tried a few things but none worked.

  3. Lyrae
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 1

    http://stackoverflow.com/questions/4997252/get-post-from-multiple-checkboxes

  4. Harsha19111999
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Try the isset() function. With that, you can give each checkbox a name and chek whether if that check box is ticked or not

  5. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.