OPPSS, warum machts die Dinger da rein.... ist woll irgendetwas schief gelaufen...
So müsste es aussehen:
<html>
<head>
<title>Edit your File</title>
</head>
<body>
<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); }
?>