I am having trouble with php code

  • From: "Alex" <laptop456@xxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Sun, 21 Oct 2007 22:39:38 -0400

I am having some trouble with a small chunk of php code:
<?php 

$target = "upload/"; 

$target = $target . basename( $_FILES['uploaded']['name']) ; 

$ok=1; 

if(move_uploaded_file($_FILES['uploaded']['tmp_name'], $target)) 

{

echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been 
uploaded. Thank you for helping our database of files grow!

<a href="http://www.add-ons.gigacities.net";>

Return to home";

} 

else {

echo "Sorry, there was a problem uploading your file. Why don't you

<a href="http://add-ons.gigacities.net/submitamod.html";>

Try again.";

}

?> 

Maybe it is just some silly thing I missed.

Other related posts: