Saturday, 15 March 2014

javascript - How to run a php script on confirm box ok event onclick of image? -



javascript - How to run a php script on confirm box ok event onclick of image? -

this question has reply here:

execute php function image onclick event 2 answers

on image click confirm box given , on confirm box ok event want run php script. have done not working. else can do..?

<html> <body> <img src='globe.jpg' style='margin-left:8.3cm;' onclick=' if(confirm("you want unlist notification..?")) { <?php echo "ok"; ?> } else { <?php echo "cancel"; ?> } '/> </body> </html>

php server side language! must on server

javascript php

No comments:

Post a Comment