My College Fund

Kod PHP yang digunakan upload file

< html >< head >< /head >< form action=" < ?php $_SERVER['PHP_SELF']? >" enctype="multipart/form-data" method="post" >Pilih fail yang dikehendaki:
< input name="gambar" type="file" / >
< input name="submit" type="submit" value="UPLOAD" / >< /form >< /body >< /html >if(!is_uploaded_file($FILES['gambar']['tmp_name'])){echo "Anda tidak pilih apa-apa fail pun";unlink($_FILES['gambar']['tmpname']);}?>

replace < with < and > with >

Tiada ulasan:

Catat Ulasan

Related Posts Plugin for WordPress, Blogger...