fghjg
<?php
if (isset($_FILES["file"]["name"]))
{
if ($_FILES["file"]["type"] == "application/x-download"
|| ($_FILES["file"]["type"] == "application/octet-stream" && strrchr($_FILES['file']['name'],'.')==".odt")
|| $_FILES["file"]["type"] == "text/plain")
{
if ($_FILES["file"]["error"] > 0)
{
echo "Return Code: " . $_FILES["file"]["error"] . "<br />";
}
else
{
echo "Upload: " . $_FILES["file"]["name"] . "<br />";
echo "Type: " . $_FILES["file"]["type"] . "<br />";
echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb<br />";
move_uploaded_file($_FILES["file"]["tmp_name"],
'upload/'.count(glob("upload/*")).strrchr($_FILES['file']['name'],'.'));
echo "Thank You, we have receive your application form" . "<br />";
echo "We will contact you once your application has been processed!";
}
}
else
{
echo "ERROR: you have uploaded an Invalid file";
echo'<form action="upfile.php" method="post" enctype="multipart/form-data"><label for="file">Filename:</label><input type="file" name="file" id="file" /><br /><input type="submit" name="submit" value="Submit" /></form>';
}
}
else
{
echo"ERROR: there is no file selected or uploaded";
echo'<form action="upfile.php" method="post" enctype="multipart/form-data"><label for="file">Filename:</label><input type="file" name="file" id="file" /><br /><input type="submit" name="submit" value="Submit" /></form>';
}
?>
Related Article: Tag archive page
is a solved PHP discussion thread by reco21 that has 4 replies, was last updated 2 years ago and has been tagged with the keywords: archive, tag, tagging.
danholding
Junior Poster in Training
56 posts since Aug 2010
Reputation Points: 15
Solved Threads: 1
Skill Endorsements: 0
... and did you have a question about something?
Ezzaral
null
16,111 posts since May 2007
Reputation Points: 3,292
Solved Threads: 873
Skill Endorsements: 28
Ho, ho. From his profile, he's going to univericity and he's in a trance most of the time. Well, speaks for itself.
diafol
Keep Smiling
10,655 posts since Oct 2006
Reputation Points: 1,628
Solved Threads: 1,513
Skill Endorsements: 57
right guys ok my bad for posting i am currently doing some right ups and posted this just to get the colour code, i FORGOT to remove it after.
afterall its so many professionals helping for free!
he's in a trance most of the time. Well, speaks for itself.
to me that does not seem very professional!
+ just a note i am not at uni studying i work for the uni !
danholding
Junior Poster in Training
56 posts since Aug 2010
Reputation Points: 15
Solved Threads: 1
Skill Endorsements: 0
Twas a joke fghjg. We've all been waiting around for you to come back with a question. Still nothing? You're working for the Uni?! My mistake. I do apologise. :)
diafol
Keep Smiling
10,655 posts since Oct 2006
Reputation Points: 1,628
Solved Threads: 1,513
Skill Endorsements: 57
@ardav no worries,
and to who ever this conserns please remove this post as i cant seem to find a way to remove it and yes its a meaningless post people please stop messageing stating that it is, thanks
danholding
Junior Poster in Training
56 posts since Aug 2010
Reputation Points: 15
Solved Threads: 1
Skill Endorsements: 0