how do i edit my code to limit all these or do i have to copy and paste the same code and change the file extention?
jpg, jpeg, pjpeg, PJPEG, JPG, JPEG, gif, GIF, png, PNG
if (!($uploaded_type=="image/gif")) {
echo "You may only upload GIF files.<br>";
$ok=0;
}
also ive restricted php is there anything else i need to restrict?
if ($uploaded_type =="text/php")
{
echo "No PHP files<br>";
$ok=0;
}

New Topic/Question
Reply




MultiQuote



|