Jump to content

Archived

This topic is now archived and is closed to further replies.

crouchjay

how to create reply, delete and forward functions

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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/>";
}

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.