Hola un saludo a todos¡
Alguien sabe cómo enviar un formulario sin resetear los valores que hay en el?
Estoy haciendo un cotizador de precios en php, usando ajax, pero manejor varios combos y no logro controlar los 10 combos anidados que manejo.
Ejemplo de lo que deseo lograr: http://www.telecable.net.mx/cotizador.aspx (http://www.telecable.net.mx/cotizador.aspx)
Gracias, estamos por aqui intentando. :-\
No te entendí :P
pero si tienes un formulario y quieres que se mantenga el valor de un input a enviar la petición get o post debes tomar el valor e imprimirlo en la variable "value" del input. Por ejemplo:
<?php
function print_input($nombre){
if($_POST[$nombre]){
echo htmlspecialchars($_POST[$nombre], ENT_QUOTES);
}
}
?>
<form method="post">
Prueba 1 : <input type="text" name="test1" value="<?php print_input('test1'); ?>" /><br />
Prueba 2 : <input type="text" name="test2" value="<?php print_input('test2'); ?>" /><br />
<input type="submit" value="Enviar prueba" />
</form>