<?php function kira() { print "jaw1"; } ?>
<input name="Button" type="button" value="Display" onclick="<?php kira();?>"/>
nothing happened when i pressed the button. why?is this right
onclick="<?php kira();?>"/>
whats the / for ?
try
onclick="php:kira()">
Al
Nothing will. PHP runs on the server; button-clicking happens on the browser. This is why we have Javascript.
can anyone give some simple click button to call function...using only PHP.