Hola gente como hago que cuando me envie los datos del formulario (boton enviar),los datos de los campos(nombre,apellido etc) se borren y me mantega en el mismo html.
Muchas gracias.
Dejo el codigo.
Código HTML:
<div id="formulario"><form action="formmail.php" method="post" id="form" ><table width="730" height="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="500" height="284">
<p style="padding-left:25px;">NOMBRE <span id="sprytextfield1">
<label for="nombre"></label>
<input type="text" name="nombre" class="cuadrotexto-form" id="nombre" />
</span></p>
<p style="padding-left:15px;">APELLIDO<span id="sprytextfield3">
<input type="apellido" name="apellido" class="cuadrotexto-form" id="apellido" />
</span></p>
<p style="padding-left:40px;">EMAIL<span id="sprytextfield4">
<label for="emailss"></label>
<input type="text" name="email" class="cuadrotexto-form" id="email" />
</span></p>
<p style="padding-left:12px;">TELEFONO<span id="sprytextfield5">
<label for="telefono"></label>
<input type="text" name="telefono" class="cuadrotexto-form" id="telefono" />
</span></p>
<p style="padding-left:30px;">CIUDAD<span id="sprytextfield5">
<label for="ciudad"></label>
<input type="text" name="ciudad" class="cuadrotexto-form" id="ciudad" />
</span></p>
<p style="padding-left:50px;">PAÍS<span id="sprytextfield5">
<label for="pais"></label>
<input type="text" name="pais" class="cuadrotexto-form" id="pais" />
</span></p>
<p>COMENTARIO</p>
<p style="padding-left:95px; margin-top:-30px"> <span id="sprytextarea1"><label for="consulta"></label>
<textarea name="consulta" id="consulta" cols="36" rows="4" class="cuadrotexto-TextArea"></textarea>
</span></p>
</tr>
</table>
<div id="enviar"><input type="submit" name="enviar" value="enviar" id="enviar" style="background-image: url(imagenes/enviar.jpg); width: 111px; height: 35px;color: transparent;border: 0px; margin-left:96px; margin-top:30px" /></div>
</form>
</div><!--FIN FORMULARIO-->