ich habe Probleme mit einem Script....
kann mir jemand sage was daran falsch ist????
<html>
<head>
<title>Edit your File</title>
</head>
<body link="#4FADFB" alink="#4FADFB" vlink="#4FADFB">
<select name="wert">
<option>../DOWNLOADS/DOWNLOADS.php</option>
<option>../MAIN.php</option>
</select>
<form action="<?PHP echo $_ENV['SCRIPT_NAME']; ?>" method="POST">
<textarea name="text" cols="60" rows="20">
<?PHP
$option = $_POST['wert'];
if(isset($_POST['text']))
{
$dat = fopen(option,"w+b");
fputs($dat,$_POST['text']);
fclose($dat);
readfile (option);
}
else { readfile (option); }
?>
Danke