<?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>';
		}
?>
TrustyTony commented: php to Python without good subject even +0
nquinlan commented: Does not appear to take the forums seriously. +0

... and did you have a question about something?

I hope moderators delete this post. Danholding should take this forum more serious, afterall its so many professionals helping for free!

Member Avatar for diafol

Ho, ho. From his profile, he's going to univericity and he's in a trance most of the time. Well, speaks for itself.

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 !

Member Avatar for diafol

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. :)

I just bumped this meaningless post! :O

@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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.