Saturday, February 12, 2011

catch multiple checkbox input


So in your catching script you must process the array with name $_POST['checkbox']
Here is the code:
[php]<body>
<form action="checkbox.php" method="post">
<input type="checkbox" name="checkbox[]" value="a">
<input type="checkbox" name="checkbox[]" value="b">
<input type="checkbox" name="checkbox[]" value="c">
<input type="checkbox" name="checkbox[]" value="d">
<br>
<br>

1 comment:

  1. Its Nice to see the things getting queued up nicely. Going right way dude.
    Just a suggestion, if you don't mind.
    Try to follow technical documentation methodologies.Will be more demanding and catchy.
    All the best

    ReplyDelete