Edited (dont think i made sense so i'll reword it!...)
Thanks guys, nunomira hit the nail on the head. The php script now uses the data from the html form correctly.
nunomira (or anyone else), if the user submits and empty string in the php script, it doesnt reconise $file as ""
For example, I am using the following statements to deal with the submitted value to this script:
if($file == "")
echo("You did not enter a file name. Please try again");
if($file != "")
{
Some code here
}
The 1st if statement never works, even if a user doesnt enter a string from the html form.
note: I am using $_POST['file'] in my html form.
Can someone help?