Ver Mensaje Individual
  #11 (permalink)  
Antiguo 12/04/2011, 16:38
Avatar de Unxky28
Unxky28
 
Fecha de Ingreso: marzo-2006
Mensajes: 82
Antigüedad: 19 años
Puntos: 1
Respuesta: Como hacer esto!

Antes que nada ponte a leer un poco, hay muchas información solo se trata de buscar correctamente y y hacer las preguntas correctamente, más no solo preguntar por preguntar y ya.

Mira tienes tu formulario :

Código PHP:
Ver original
  1. <form action="save.php" method="post" >
  2.  
  3. <input type="text" nam="text1" />
  4. <input type="text" nam="text2" />
  5. <input type="text" nam="text3" />
  6. <input type="hidden" name="tabla" value="VALORASIGNADO" />
  7.  
  8. </form>

Y ya en tu archivos donde vas a guardar :

Código MySQL:
Ver original
  1. INSERT INTO  ".$_POST["tabla"]."(titulo,categoria,precioantes,precioahora,descripc ion,minidescrip,fecha) VALUES('$titulo','$categoria','$precioantes','$pre cioahora','$descripcion','$minidescrip',NOW());


Como te mencione Lee, y practica.

Saludos.!
__________________
El Futuro esta en Tus Manos...