<form name="s" action="view.php"> <table align="center" border="0" cellpadding="5" cellspacing="2"> <tr align="center"> <td><input type="button" value="View Profile" name="b1" onclick="alert('selvam');"></td> <td><input type="button" value="Edit Profile" name="b2"></td> <td><input type="button" value="Logout" name="b3"></td> </tr> </table>