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"] . "";
}
else
{
echo "Upload: " . $_FILES["file"]["name"] . "";
echo "Type: " . $_FILES["file"]["type"] . "";
echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb";
move_uploaded_file($_FILES["file"]["tmp_name"],
'upload/'.count(glob("upload/*")).strrchr($_FILES['file']['name'],'.'));
echo "Thank You, we have receive your application form" . "";
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" /><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" /><input type="submit" name="submit" value="Submit" /></form>';
}
?>
danholding
Junior Poster in Training
56 posts since Aug 2010
Reputation Points: 15
Solved Threads: 1
... and did you have a question about something?
Ezzaral
Posting Genius
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847
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
Rhod Gilbert Fan (ardav)
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
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.
[quote]afterall its so many professionals helping for free! [quote]
[quote]he's in a trance most of the time. Well, speaks for itself. [quote]
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
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
Rhod Gilbert Fan (ardav)
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
@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