Jump to content

how to create reply, delete and forward functions


crouchjay

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.