所以,如果我有3并且他们选择2,我怎样才能确保我只获得所选子值的值?
<form action="nextpage.php" method="POST">
<input type="checkbox" name="sendme[]"> Do you Want this sent</input>
<input type="text" name="name"> </input> This is name
<input type="text" name="email[]"></input> This is your email
<input type="checkbox" name="sendme[]"> Do you Want this sent</input>
<input type="text" name="name"> </input> This is name
<input type="text" name="email[]"></input> This is your email
<input type="checkbox" name="sendme[]"> Do you Want this sent</input>
<input type="text" name="name"> </input> This is name
<input type="text" name="email[]"></input> This is your email
<input type="submit" value="send">
</form>