创建核对表,仅在选中时发送子值

时间:2013-11-20 17:16:25

标签: php html forms checkbox submit

所以,如果我有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>

0 个答案:

没有答案