Hola
Tarecito
Prueba este ejemplo:
Código PHP:
<html>
<head>
<script type="text/javascript">
function poner(obj) {
if (obj.checked)
document.forms[0]['txt'].value += obj.value;
else {
t = document.forms[0]['txt'].value;
t = t.split(obj.value).join('');
document.forms[0]['txt'].value = t;
}
}
</script>
</head>
<body>
<form>
<input type="checkbox" value="uno" onclick="poner(this)" />
<input type="checkbox" value="dos" onclick="poner(this)" />
<input type="checkbox" value="tres" onclick="poner(this)" />
<input type="text" name="txt" />
</form>
</body>
</html>
Saludos,