<?php
$con = mysql_connect("localhost","root","12345");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
echo "connection made";
if(isset($_POST['nw_update'])){
echo("You clicked nw_update!");
}
else {
echo" dhur";
}
?>
<html>
<body>
<form action="<?php echo $_SERVER(PHP_SELF); ?>" method="POST" >
<input type="button" id="nw_update" value="NW_Update"/>
</form>
</body>
</html>
In the above code when the button is clicked i want the echo("You clicked nw_update!"); to be executed. PLease could you help out.