This might look as the dumb question, but I hope it's not. I have a PHP file delete.php that will delete selected users (it is not ready yet, but I will write it after I finish my HTML model). So, on my HTML model I have the following:
<li><button class="sexybutton">
<span><span><span class="add">Add</span></span></span>
</button></li>
This sexybutton
is the button styling I've downloaded. So, how to make it post the selected user list to a PHP file without putting a <form>
tag inside (it will brake all the structure otherwise and will not be valid)?
I could use jQuery (or JS), but I still do not know how to do this. If PHP would have something like "onclick" function :)
Thank you in advance.