friends.
I have a PHP Class like this:
class DiffFunctions {
function showMessage($msg){
echo "<script type='text/javascript'>alert('$msg')</script>";
}
}
and I have tried this code in PHP Page:
<?php
include_once './Classes/DiffFunctions.php';
$myFuns2 = new DiffFunctions();
?>
<button id="sendMsg" type="submit" onclick="$myFuns2->showMessage('You have clicked the button')">Click Here To Show The Message</button>
But It did not work!