autodefrost Posted July 24, 2007 Share Posted July 24, 2007 Is there a tutorial out there that anyone could send me a link to that uses checkboxes or radio buttons in an email form? Link to comment https://forums.phpfreaks.com/topic/61556-adding-checkboxes-or-radio-buttons-to-a-form/ Share on other sites More sharing options...
Fadion Posted July 25, 2007 Share Posted July 25, 2007 U can tell where u are going to use them so u can get some real help. Link to comment https://forums.phpfreaks.com/topic/61556-adding-checkboxes-or-radio-buttons-to-a-form/#findComment-307478 Share on other sites More sharing options...
roopurt18 Posted July 25, 2007 Share Posted July 25, 2007 http://www.w3schools.com/tags/tag_input.asp http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_checkbox http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_radio Link to comment https://forums.phpfreaks.com/topic/61556-adding-checkboxes-or-radio-buttons-to-a-form/#findComment-307488 Share on other sites More sharing options...
stlewis Posted July 25, 2007 Share Posted July 25, 2007 Are you saying that you'd like to send someone an HTML form via email? Your question is a little vague for anyone to be very helpful. Link to comment https://forums.phpfreaks.com/topic/61556-adding-checkboxes-or-radio-buttons-to-a-form/#findComment-307493 Share on other sites More sharing options...
redarrow Posted July 25, 2007 Share Posted July 25, 2007 sorry wrote this 1 hour ago so i thort might come handy but please sudy the links ok. <?php if(isset($_POST['submit'])){ if(empty ($one)){ echo "<br><br>unchecked 1<br><br>"; }else{ echo "<br><br>checked 1<br><br>"; } if(empty ($two)){ echo "<br><br>unchecked 2<br><br>"; }else{ echo "<br><br>checked 2<br><br>"; } if(empty ($three)){ echo "<br><br>unchecked 3<br><br>"; }else{ echo "<br><br>checked 3<br><br>"; } if(empty ($four)){ echo "<br><br>unchecked 4<br><br>"; }else{ echo "<br><br>checked 4<br><br>"; } } ?> <form method="POST" action="<?php echo $_SERVER['PHP_SELF'] ?>"> <br><br> check box 1 <input type="checkbox" name="one"> <br><br> check box 2 <input type="checkbox" name="two"> <br><br> check box 3 <input type="checkbox" name="three"> <br><br> check box 4 <input type="checkbox" name="four"> <br> <br> <input type="submit" name="submit" value="cheek"> </form> Link to comment https://forums.phpfreaks.com/topic/61556-adding-checkboxes-or-radio-buttons-to-a-form/#findComment-307494 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.