Ver Mensaje Individual
  #2 (permalink)  
Antiguo 31/03/2008, 15:21
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Re: Problema con una pagina

Es precisamente tal cual lo pones, el form debe de ir:
Código PHP:
<form action="<?php echo $_SERVER['PHP_SELF']; ?>">

<input type="submit" name="enviar" value="Guardar" />
</form>
y en tu PHP:
Código PHP:
if( isset( $_POST['enviar'] ) && !empty( $_POST['enviar'] ) ) {
    
// codigo php
} else {
     
// html

Saludos.