Hi, is there any way I can execute my PHP coding when my html image is clicked? Through AJAX, HTML, Javascript or anything.
Right now my coding looks like this in Dreamweaver:
<img src="_images/banner1.jpg" width="286" height="60" border="0" usemap="#Map" class="apply-btn" style="float:center; padding-top:20px; padding-left:240px;" onclick=
"hello()" value='Applyonclick' input name='Applyonclick'/>
</form>
<script type="application/javascript">
function hello()
{
alert("Hello It works");
<?php
if (isset($_POST['Applyonclick']))
{
$icmp1 = "icmp1.txt";
$value = exec ("snmpset -v 2c -c private 172.16.164.188 .1.3.6.1.4.1.9.2.1.53.172.16.164.187 string $icmp1 ");
}
?>
}
</script>
I know I'm not doing the right way but I don't really know how it works so I'm trying out all sorts of things.
Regards