Hola, evera. Bienvenido al Foro.
A ver si esto te ayuda:
Código PHP:
<html>
<head>
<script>
function texto(obj) {
elem=document.getElementById('txt');
elem.childNodes[0].nodeValue=obj.value;
}
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<input type="button" value="Botón 1" onClick="texto(this)">
<input type="button" value="Botón 2" onClick="texto(this)">
<table><tr>
<td id="txt"> </td>
</tr></table>
</body>
</html>
Saludos,