<HTML> <HEAD> <TITLE></TITLE> <script type="text/javascript"> function choix() { frm.res.click(); frm.fic.click(); alert ( frm.fic.value ) ; } </script> </HEAD> <form name="frm" style="display:'none'"> </form> </HTML>
0) formulaire.submit();'>
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question<form name='formulaire' action='up.php' method='post' enctype='multipart/form-data'> </form> <? if(isset($HTTP_POST_FILES['fichier']['name'])){ $MAX_FILE_SIZE = 10000; $allowed_types = array("image/pjpeg", "image/jpeg", "image/jpg"); $fname = $HTTP_POST_FILES['fichier']['name']; $ftype = $HTTP_POST_FILES['fichier']['type']; $fsize = $HTTP_POST_FILES['fichier']['size']; $ftmp = $HTTP_POST_FILES['fichier']['tmp_name']; if(!in_array($ftype, $allowed_types))die(); if($fsize > $MAX_FILE_SIZE)die(); copy($ftmp,"upload/".$fname); } ?>
<form name='formulaire' action='up.php' method='post' enctype='multipart/form-data'> </form> <form name="rch"> </form> <? if(isset($HTTP_POST_FILES['fichier']['name'])){ $MAX_FILE_SIZE = 10000; $allowed_types = array("image/pjpeg", "image/jpeg", "image/jpg"); $fname = $HTTP_POST_FILES['fichier']['name']; $ftype = $HTTP_POST_FILES['fichier']['type']; $fsize = $HTTP_POST_FILES['fichier']['size']; $ftmp = $HTTP_POST_FILES['fichier']['tmp_name']; if(!in_array($ftype, $allowed_types))die(); if($fsize > $MAX_FILE_SIZE)die(); copy($ftmp,"upload/".$fname); } ?>