Oh yes i know what you mean, i'm not using the variable so why have it there in the first place. I updated the $target variable code accordingly but i'm still little confused about my URL because from what i can see, all my characters are alpha numeric ie. A-Z and single underscore unless your seeing something i'm not?
If you have a very simple example that might help me.
Also, when updating my $target code, php still seems to gointo my success message even if the file i upload is the same on my sever. Please not i'm using WAMP, so under my www, i have Shanghai_2010\images(working on windows machine)
Is the URL affecting my if statement i imagine then?