Ver Mensaje Individual
  #2 (permalink)  
Antiguo 31/05/2007, 11:18
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años, 8 meses
Puntos: 2135
Re: Actualizar un Div, como?

Tu problema esta en que tu proceso esta al final, lo que debes de hacer es mover el proceso al inicio y con eso se arregla tu problema.

Saludos.

Código PHP:
<?php
require ("connection.php");
$text =$_POST['text'];
if (
$text!=""){
      
mysql_query("UPDATE tabell SET engelsk = '$text'") or die(mysql_error());
}
?>
<html>
    <body>
        <div style="border: 1px red solid; width: 400px;"
            <p style="color: black;">
            <?php
                
require ("original.php");
            
?>
            </p>
        </div>
    
    
    
    
        <p>Insert text: </p><br /><br />
        
        <form method=post type=text name="newText">
            <textarea name="text" rows=5 cols=40 wrap></textarea><br /><br />
            <input name="enter" type="submit" value="Enter"</input>
            <input type="button" value="Go Back" onclick="self.history.back();">
        </form>
    </body>
</html>