Tomar Valor De Un Formulario.
| From: | Alberto Ferrer - Barra Home | Date: | Wed, 30 May 2001 19:05:31 +0000 |
| Subject: | Tomar Valor De Un Formulario. | ||
| Groups: | php.general.es | ||
| Request: | Send a blank email to general-es+get-10728@lists.php.net to get a copy of this message | ||
como hago para que este script tome la variable 4valor que le coloque.
Aca ta lo que hice , debe funcionar pedo no anda.
<?php
$line1 = exec('ls $valor', $output, $error);
while (list(,$line) = each($output)){
echo $line, "<BR>\n";
}
if ($error){
echo "Unix error code: $error<BR>\n";
exit;
}
?>
y este es el que emite el valor
<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
<html>
<head>
<title>PHP Exec!</title>
<form action =Exec.php method=get>
<input type=text name=valor>
<input type=submit value="Entrar!">
</center>
</body>
</html>
</head>
<body>
</body>
</html>
Alberto Ferrer
ICQ.: 117204246
root@barrahome.com
http://www.barrahome.com
The PHP Spanish Group