If Else troubles
Posted: Sun Nov 20, 2005 3:24 pm
Hi,
What seems a simple if else statement is not working. It is as follows;
Please help.
What seems a simple if else statement is not working. It is as follows;
Code: Select all
if (file_exists($userfile_name)) {
echo "Error - The $userfile (name) already exists. Please change the name of this file to something else and try again.";
}
else (move_uploaded_file($userfile, $add)) {
echo "File uploaded, thankyou";
}