delete.php

<?php 
include 'connect.php';
?>
<html>
<body>
	
	<form action = "delete_info.php" method="POST">   
				
				<label for="id">Enter the ID You want to delete</label>
				<input type="number" name="id" required>
							
				<button type="submit">Submit </button>					     
	</form>
</body>
</html>
	
?>

delete_info.php

	
	<?php
	session_start();
	include 'connect.php';

	$id = $_POST['id']; 
	
		$stmt = $conn->prepare("DELETE FROM login WHERE id=?");
		$stmt->bind_param("s", $record_id);
		$stmt->execute();

		if($stmt == true){
			echo "Recorded Deleted";
			}
		else{
			echo"Not Deleted";
		}
		
		mysqli_close($conn);
?>