crouchjay Posted May 1, 2006 Share Posted May 1, 2006 I am confused on how to do this. Basicly, how do I create buttons or images that when pressed will do different stuff with the checked boxes. Depending on what the user wants to do. Or is there a tutorial or information I can find on this would also be helpfull. Thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/8853-how-to-create-reply-delete-and-forward-functions/ Share on other sites More sharing options...
crouchjay Posted May 2, 2006 Author Share Posted May 2, 2006 this is my two sets of code snipets. I can get it to work when both are type submits but not as images. How do I go about this? Thank you.<form action="test3.php" method="post" ><input type="checkbox" name="languages[]" value="csharp" />C# <br /><input type="checkbox" name="languages[]" value="jscript" />jscript <br /><input type="checkbox" name="languages[]" value="perl" />perl <br /><input type="checkbox" name="languages[]" value="php" />php <br /><input name="submit" type="image" src="images/submit_btn.gif" /><input name="delete" type="image" src="images/delete_btn.gif" /></form>if(isset($_POST['submit'])) {echo "You chose the following languages. <br/>";foreach($_POST['languages'] AS $language) echo "$language<br/>";}if(isset($_POST['delete'])) {echo "has been deleted. <br/>";foreach($_POST['languages'] AS $language) echo "$language<br/>";} Quote Link to comment https://forums.phpfreaks.com/topic/8853-how-to-create-reply-delete-and-forward-functions/#findComment-32569 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.