if ($checkid) { echo "Your vote already counted !"; } else { $sakib = $user->votmamun(); $votoke = $user->votpayidforcouncillor($uid, $uname); if ($sakib) { echo "Thanks for your vote!"; } } } if (isset($_POST['jamal'])) { $checkid = $user->idcheckforcouncillor($uid); if ($checkid) { echo "Your vote already counted !"; } else { $sakib = $user->votjamal(); $votoke = $user->votpayidforcouncillor($uid, $uname); if ($sakib) { echo "Thanks for your vote!"; } } } ?> <form action="" method="post" style="margin-left:48px"> <div style="float:left"> <input style="margin:5px; background:url(images/co1.jpg);height:200px;width:200px;" type="submit" name="nazrul" value="" class="btn btn-info" /><br/> <span> Nazrul</span> </div> <div >