KillerBean Posted March 5, 2007 Report Share Posted March 5, 2007 Jautaajums, par to, kaa pareizi ir jaacheko vai ir pievienots atteels vai nee.. Kods, piem: <form name='add' action='' enctype='multipart/form-data' method='POST'><input type='file' name='attels'><input type='submit' name='pievienot' value='Pievienot'></form> if(isset($attels)) {..}; // ?? Link to comment Share on other sites More sharing options...
andrisp Posted March 5, 2007 Report Share Posted March 5, 2007 Ir tāds masīvs $_FILES. http://lv.php.net/manual/en/features.file-upload.php http://lv.php.net/manual/en/features.file-upload.errors.php if ($_FILES['userfile']['error'] == 'UPLOAD_ERR_OK') { // Attēls veiksmīgi uploadots. } Link to comment Share on other sites More sharing options...
Recommended Posts