Ver Mensaje Individual
  #4 (permalink)  
Antiguo 02/08/2009, 11:17
Avatar de gjx2
gjx2
 
Fecha de Ingreso: agosto-2008
Ubicación: R.D
Mensajes: 1.153
Antigüedad: 15 años, 9 meses
Puntos: 139
Respuesta: Problema con F5 cuando se insertan datos en MYSQL desde PHP

Cita:
Cuando relleno los datos y presiono agregar:


if ( $_POST['agregar'] ){

INSERT INTO tabla .....

tablanombres();

}
No lo tienes como yo lo tengo

Tu codigo pudiera quedar haci

Código PHP:
Ver original
  1. if ( !isset($_POST['agregar']) ){
  2.  
  3. /*
  4. tablanombres();
  5.  
  6. <form action=' ' method=POST >
  7.  
  8. FORMULARIO.
  9.  
  10. <input type='submit' name='agregar' value='Agregar Datos' />
  11.  
  12. </form>
  13. */
  14.  
  15. }
  16.  
  17. else{
  18.  
  19.  
  20. ##INSERT INTO tabla .....
  21.  
  22. ##tablanombres();
  23.  
  24.  
  25. }