Can anyone show me how to use html button as a link to connect to php? I'm not quite sure how to do it and can't find any useful code that can help me to achieve it. I'm pretty new so bit struggling with it.thanks
https://i.stack.imgur.com/yDHEN.jpg
[![<!doctype html>
<html>
<head>
<meta charset="utf-8">
<style>
h1 {
padding-top: 50px;
text-align: center;
color: white;
margin-right:60px;
}
</style>
<title> Washing Machine Control System</title>
<link rel="stylesheet" type="text/css" href="BK.css"/>
<link rel="stylesheet" type="text/css" href="MachineButtons.css"/>
<script src="http://code.jquery.com-1.11.3.min.js"></script>
</head>
<body bgcolor = "Black">
<h1>Machine Controller</h1>
<br></br>
<br></br>
<form method="GET/POST" action="theNameOfMyPHPFile.php">
<div id="icons"><img src="D:\Year 4 (Sem1&2)\Mobile Technologies\Coursework\Website\WM1.jpg" alt="Machine One" style="width:150px;height:228px;"/></a></div>
<label class="switch">
<input class="switch-input" type="checkbox" />
<span class="switch-label" data-on="M1 On" data-off="M1 Off"></span> <span class="switch-handle"></span>
</label>
<div id="icons2"><img src="D:\Year 4 (Sem1&2)\Mobile Technologies\Coursework\Website\WM2.jpg" alt="Machine Two" style="width:150px;height:228px;"/></a></div>
<label class="switch">
<input class="switch-input" type="checkbox" />
<span class="switch-label" data-on="M2 On" data-off="M2 Off"></span> <span class="switch-handle"></span>
</label>
<div id="icons4"><img src="D:\Year 4 (Sem1&2)\Mobile Technologies\Coursework\Website\WM3.jpg" alt="Machine Three" style="width:150px;height:228px;"/></a></div>
<label class="switch">
<input class="switch-input" type="checkbox" />
<span class="switch-label" data-on="M3 On" data-off="M3 Off"></span> <span class="switch-handle"></span>
</label>
<div id="icons3"><img src="D:\Year 4 (Sem1&2)\Mobile Technologies\Coursework\Website\WM4.jpg" alt="Machine Four" style="width:150px;height:228px;"/></a></div>
<label class="switch">
<input class="switch-input" type="checkbox" />
<span class="switch-label" data-on="M4 On" data-off="M4 Off"></span> <span class="switch-handle"></span>
</label>
</form>
</body>
</html>]