Tema: area texto
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 16/01/2009, 08:02
diegonazho
 
Fecha de Ingreso: enero-2009
Mensajes: 142
Antigüedad: 15 años, 3 meses
Puntos: 1
area texto

holas buenos dias tenog un problema con un area de texto resulta que no me esta pasando los datos dejo el codigo

<html>
<head><title>ing</title></head>
<body>
<div align = "center">
<h1> Insertar un registro</h1>
<br>
<?php

echo '<form method = "GET" action = "nuevasolicitud2.php">';
echo "Descripcion<br>";
echo '<textarea name = "descripcion" cols = "80" rows ="20"></textarea>';
$textoarea = '<textarea name= "descripcion" cols ="80" rows="20"></textarea>';
echo '<br><input type = "submit" value = "Enviar">';
echo '</form>';
?>
</div>
</body>
</html>

y luego esto

<html>
<head><title>dfsdfsd</title></head>
<body>
<?php
$connect = mysql_connect('localhost','diegol','darkdiego');
$select = mysql_db_query("loginout","select * from solicitud");
$texto = $_GET['textoarea'];
echo "$texto";
echo "<pre>";
var_dump($texto);
echo "</pre>";
$update = "update solicitud set descripcion = '$texto' where numero = 1";
mysql_query($update);
?>
</body>
</html>

puse el var_dump para ver si me estaba pasando los datos y me aparece null y no me resulta :(