<form method="post"> <input type="text" name="deleteinput" class="button"/> <input type="submit" name="deletebtn" class="button" value="Delete single user data"/> </form> // php <?php $name = $_GET['deletebtn']; echo $name; ?>