Advertisement
Guest User

Untitled

a guest
Dec 20th, 2014
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. HTML:
  2.  
  3. <input type="checkbox" name="input_name[]" value="test"/>
  4. <input type="checkbox" name="input_name[]" value="test1"/>
  5. <input type="checkbox" name="input_name[]" value="test2"/>
  6.  
  7. PHP:
  8. <?php
  9. //you should check if input_name is set
  10. if(sizeof($_POST['input_name']))
  11. echo implode(', ', $_POST['input_name']);
  12. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement