Tell me, is it possible to somehow start the function in php by pressing a button?
I found this code here, but it doesn’t work.
<?php function dw($value){ echo $value; } ?> <html> <head> </head> <body> <?php wd('Привет!');?> <button value="OK" onclick=""></button> </body> </html> In general, it is necessary that everything be according to this algorithm:
1) User enters - IP check: if the user has voted, go to step 3; if not, suggest to click "yes" or "no"; 2) is added to the IP file; 3) displays the result of all the votes (how many "yes", how many "no").
Help to realize, make a free social project on the topic of ATO.