Case 1.
Let's say your Upload.html is in root of your web server...
Also, let's say that your uploader.php file is in folder upload in your root folder...
In this case you have a structure like this:
/root/
| - Upload.html
| - /upload/
| - uploader.php
O.K? This means that uploader.php is in one level below Upload.html or that Upload.html is one level up from the uploader.php... Clear?
So, if this is the case and the form is in Upload.html in it's action you have to enter "upload/uploader.php" for it to be found...
Case 2.
Let's say your Upload.html is in root of your web server and so is your uploader.php...
In this case you have a structure like this:
/root/
| - Upload.html
| - uploader.php
O.K? This means that uploader.php is in the same level as Upload.html... Clear?
So, if this is the case and the form is in Upload.html in it's action you have to enter "uploader.php" for it to be found...
Case 3.
Let's say your Upload.html is in folder docs of your web server root...
Also, let's say that your uploader.php file is in your root folder...
In this case you have a structure like this:
/root/
| - uploader.php
| - /docs/
| - Upload.html
O.K? This means that uploader.php in one level up from the Upload.html or that Upload.html is one level below the uploader.php... Clear?
So, if this is the case and the form is in Upload.html in it's action you have to enter "../uploader.php" for it to be found...
Case 4.
Let's say your Upload.html is in folder named docs in the web server root...
Also, let's say that your uploader.php file is in folder upload in your root folder...
In this case you have a structure like this:
/root/
| - /docs/
| - Upload.html
| - /upload/
| - uploader.php
O.K? This means that uploader.php in in the same level from the root as is Upload.html but are in different folders... Clear?
So, if this is the case and the form is in Upload.html in it's action you have to enter "../upload/uploader.php" for it to be found...
So you have here what I believe are the simplest situations that you can encounter but the principle is the same if you have more that one folder in the path... Linking I used here is called RELATIVE linking because it links two pages using the relative paths between them so it stays the same no matter where they are...
Is this anyway helpfull?