Hi,
I can't figure what I've doing wrong with my code :
in my Form :
<form name="form1" method="post" action="do_insc ription.php">
<p align="center"> <img src="images/logo.jpg" width="400" height="80"></p>
<div align="center">
<table width="500" border="0">
..
<td><input name="avatard" type="file" id="avatard"
enctype="multip art/form-data"></td>
<input type="hidden" name="MAX_FILE_ SIZE" value="30000" />
..
in my "action script" :
.....
$file = $HTTP_POST_FILE S['avatard'];
if ($file && $file['size']<=1024000000 && $file['size']>0){
if (copy($file['tmp_name'],"./avatard/".$file['name'])){
echo "Fichier Uploadé";
} else echo "L'upload à échoué.";
}else echo "Fichier trop volumineux ou innexistant";
....
When I execute this script I get this error message : Undefined index: avatard
File to big or inexistant (translated from french(
thx in advance
I can't figure what I've doing wrong with my code :
in my Form :
<form name="form1" method="post" action="do_insc ription.php">
<p align="center"> <img src="images/logo.jpg" width="400" height="80"></p>
<div align="center">
<table width="500" border="0">
..
<td><input name="avatard" type="file" id="avatard"
enctype="multip art/form-data"></td>
<input type="hidden" name="MAX_FILE_ SIZE" value="30000" />
..
in my "action script" :
.....
$file = $HTTP_POST_FILE S['avatard'];
if ($file && $file['size']<=1024000000 && $file['size']>0){
if (copy($file['tmp_name'],"./avatard/".$file['name'])){
echo "Fichier Uploadé";
} else echo "L'upload à échoué.";
}else echo "Fichier trop volumineux ou innexistant";
....
When I execute this script I get this error message : Undefined index: avatard
File to big or inexistant (translated from french(
thx in advance
Comment