multipart/form-data
Posted: Wed May 28, 2003 2:32 am
hi all
i will upload a file with form .
I have a problem to do it.
when I submitted the form if my form content enctype="multipart/form-data" the all of the fild's form not pass by post method.
I work on Unix and apachi
my script is:
----------
<?php
if(isset($HTTP_FILES_VARS['f1']))
echo "ok";
else
echo "no";
?>
<form action="test_form.php" enctype="multipart/form-data" method="post">
<input type="file" name="f1">
<input type="submit" name="sub">
</form>
BUT if my form haven't enctype="multipart/form-data" then i have all variable.
i don't know it.
please help me
i will upload a file with form .
I have a problem to do it.
when I submitted the form if my form content enctype="multipart/form-data" the all of the fild's form not pass by post method.
I work on Unix and apachi
my script is:
----------
<?php
if(isset($HTTP_FILES_VARS['f1']))
echo "ok";
else
echo "no";
?>
<form action="test_form.php" enctype="multipart/form-data" method="post">
<input type="file" name="f1">
<input type="submit" name="sub">
</form>
BUT if my form haven't enctype="multipart/form-data" then i have all variable.
i don't know it.
please help me