Hi all ..
here the function :
Function form_check(){
Global $dir, $n, $num, $maxsize, $ext, $rnd, $image, $HTTP_POST_FILES, $HTTP_SESSION_VARS;
$num = 0;
while ($num++ < $n)
{
if($HTTP_POST_FILES['image']['tmp_name'][$num] != 'none' )
{ // 1
// CHECK FILE TYPE
if (in_array ($HTTP_POST_FILES['image']['type'][$num], $ext))
{
$ok_up=1;}else{
$ok_up=0;
$img_error_msg= "You can upload just images as jpg and gif !";
}
// END FILE TYPE
// File size check
if($HTTP_POST_FILES['image']['size'][$num] >= $maxsize){
$ok_up=0;
$img_error_msg= "max szie is =$maxsize";
}
// END File size check
// make the file COPY
if($ok_up ==1){
move_uploaded_file($image[$num],"$dir/$rnd{$HTTP_POST_FILES[image][name][$num]}") or die('error');
//echo "[{$HTTP_POST_FILES[image][name][$num]}]-->{$HTTP_POST_FILES[image][type][$num]}";
}
// END make the file COPY
} // 1
} // while END
$imagesname= implode(':', $HTTP_POST_FILES['image']['name']);
//$imagesname="Test For Session !";
session_register("imagesname");
if(session_is_registered ("imagesname")){
echo "IS REGISTED<BR>";}else{echo "Not regi<br>";}
echo"<B><BR>||". $HTTP_SESSION_VARS["imagesname"]."||</b><br>";
}
i cann`t but the session_start in the function,coz there are some html code befor the function is go on, so i put on the code top !
the session msg what i got from session_is registed is :
IS REGISTED
but it not gonna view the session value !?
WHAY !?
i had try with this #@$@# since yesterday !