We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,186 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

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>';
		}
?>
4
Contributors
7
Replies
3 Days
Discussion Span
2 Years Ago
Last Updated
8
Views
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
Moderator
16,111 posts since May 2007
Reputation Points: 3,292
Solved Threads: 873
Skill Endorsements: 28

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

Sorcher
Junior Poster
191 posts since Oct 2010
Reputation Points: 16
Solved Threads: 9
Skill Endorsements: 0

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
Moderator
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
Moderator
10,655 posts since Oct 2006
Reputation Points: 1,628
Solved Threads: 1,513
Skill Endorsements: 57

I just bumped this meaningless post! :O

Sorcher
Junior Poster
191 posts since Oct 2010
Reputation Points: 16
Solved Threads: 9
Skill Endorsements: 0

@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

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0860 seconds using 2.7MB