On Monday 21 May 2001 08:03, Heidi Belal wrote:
> I have a form where i let people choose a file to
> upload, but i want to limit them to image files only.
> So i want to only allow the .gif and .jpg to be
> uploaded. What i tried doing was this:
> if ($filename_type == "image/gif")
>-- uplo
Hi All,
I have a form where i let people choose a file to
upload, but i want to limit them to image files only.
So i want to only allow the .gif and .jpg to be
uploaded. What i tried doing was this:
if ($filename_type == "image/gif")
-- upload file
otherwise give an error message!
but for so
Hi:
For compare strings you can use strcmp.
$st1 = "hi";
$st2 = "bye";
if (strcmp($st1, $st2)) {
echo "are different";
}
else {
echo "are equal";
}
The strcmp return 0 when the strings are equal. If the strings are diferent,
return the pos of the char where begin the diference.
Hi All!
i'm creating this form for people to upload pictures,
so i want to be able to compare the type of the file,
so that if it's not a .gif or a .jpg i give them an
error message!
What i am using is:
If ($userfile_type == "image/gif")
- here it uploads the file
otherwise it sends out an er
Hi All!
i'm creating this form for people to upload pictures,
so i want to be able to compare the type of the file,
so that if it's not a .gif or a .jpg i give them an
error message!
What i am using is:
If ($userfile_type == "image/gif")
- here it uploads the file
otherwise it sends out an er
Hi All!
i'm creating this form for people to upload pictures,
so i want to be able to compare the type of the file,
so that if it's not a .gif or a .jpg i give them an
error message!
What i am using is:
If ($userfile_type == "image/gif")
- here it uploads the file
otherwise it sends out an er
6 matches
Mail list logo