I am having problems with the exact same thing, so if you figure it out please share! Also, what error are you getting?
Have a great day, Alex
----- Original Message ----- From: "Alex" <laptop456@xxxxxxxxx To: <programmingblind@xxxxxxxxxxxxx Date sent: Sun, 21 Oct 2007 22:39:38 -0400 Subject: I am having trouble with php code
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.
__________View the list's information and change your settings at //www.freelists.org/list/programmingblind