<!DOCTYPE html>
<html>
<body>
<form>
<input type="radio" name="namephp" id="idphp">PHP<br />
</form>
<button onclick="check()">Check PHP</button>
<button onclick="uncheck()">Uncheck PHP</button>
<script>
function check() {
document.getElementById("idphp").checked = true;
}
function uncheck() {
document.getElementById("idphp").checked = false;
}</script>
</body>
</html>