Hmm, damn, why does this not work??
And the second section...
My $_FILES['photo'] is always empty.
Thanks!
Greetz,
Paul
Code:
echo '<div id="edittext"><form method="post" action="" enctype="multipart/form-data"> <textarea name="txtarea" id="textfield">' . $edit['text'] . '</textarea><br /> <input type="file" name="photo" value="Selecteer een foto" size="50" /><br /> <font color="white">' . $edit['photo'] . '</font><br /> <input type="hidden" name="id" value="' . $edit['id'] . '" /> <input type="hidden" name="section" value="' . $section . '" /> <input type="submit" name="save" value="Opslaan" /></form></div>';
Code:
}elseif( isset( $_REQUEST['save'] )){
$ID = (int) trim(mysql_real_escape_string( $_REQUEST['id'] ));
$section = $_REQUEST['section'];
$newtext = mysql_real_escape_string( stripslashes( $_REQUEST['txtarea'] ));
if( isset( $_FILES['photo'] )){
$foto = strtolower( $_FILES['photo']['name'] );
$tmp = $_FILES['photo']['tmp_name'];
}.....
Thanks!
Greetz,
Paul
Comment