Please help me to fix this code :(
echo'<td style=" width: 20%"><input type="button" value="inactive" onclick="set_user_inactive($user_id)">
</td>';
I need function set_user_inactive($user_id) works if user click on the button in the table.
I won't use form I need it v.simple
html and php
Thanks
set_user_inactive()a php function? In this universe, you cannot run PHP from the client side. You'll need a lot more than a simple onclick call to run a PHP function, ajax is your best bet. See: stackoverflow.com/questions/7165395/…