![](http://i40.tinypic.com/votqqh.png)
Código PHP:
<script type="text/javascript">
if (boton.name="submit" = OK) {
textfield1 ="";
textfield2 ="";
checkbox1= false;
checkbox2= false;
}
</script>
<form name="form1" method="post">
<br>
<p>Nombre:
<input type="text" name="textfield1">
</p>
<p>Comuna:
<input type="text" name="textfield2">
</p>
<p>
<input type="checkbox" name="checkbox1" value="checkbox">
Opcion 1 </p>
<p> <input type="checkbox" name="checkbox2" value="checkbox">
Opcion 2</p>
<p>
<input type="submit" name="submit" value="Limpiar">
</p>
</form>