my situation is like this:
<form action="test.php" method=post>
<input type=text name=txtTo>
<input type=text name=txtMessage>
<input type=button name=btnSend1 value=Send>
<input type=button name=btnSendAll value="Send to All">
</form>
i know how to make a button call a javascript function to submit the form...but i want to make those to buttons to be able to do that but with a different effect...
if the user click on the btnSend1 button, it will send the datas to test.php like normal. When btnSendAll is click, it will send to test.php with an extra data to let the system know that the user click btnSendAll instead of btnSend...
How can i do that, is there a way for me to post an extra data when the data is not from the <form>'s tag???
Do you all understand? What i'm typing here is kinda messy, isnt it?
hehe....thanks in advance though...
<form action="test.php" method=post>
<input type=text name=txtTo>
<input type=text name=txtMessage>
<input type=button name=btnSend1 value=Send>
<input type=button name=btnSendAll value="Send to All">
</form>
i know how to make a button call a javascript function to submit the form...but i want to make those to buttons to be able to do that but with a different effect...
if the user click on the btnSend1 button, it will send the datas to test.php like normal. When btnSendAll is click, it will send to test.php with an extra data to let the system know that the user click btnSendAll instead of btnSend...
How can i do that, is there a way for me to post an extra data when the data is not from the <form>'s tag???
Do you all understand? What i'm typing here is kinda messy, isnt it?
hehe....thanks in advance though...
Comment