I am probably being a mega dope here but here goes.
I have a folder on my web server root that holds
template and test scripts. This folder has many sub-folders each with its own template or script.
When I run one of my templates in one sub-folder, I want it to reference a script in another sub-folder on the 'action'
parameter of a submitted form.
How do I point the 'action' statement to a seperate sub-directory without hard coding the entire physical path on the server?
folder
|
|
|--Templates&Tests folder
|
|
|--Template01 folder
| Contains 'MyForm.html'
|
|--Template02 folder
Contains 'MyScript.asp'
In 'MyForm.html':-
<form action="MyScript.asp" method="post" name="Form01">
<input name="Run TestComponent" type="submit">
</form>
'Myscript.asp' will not be found because it does not exist
in the folder Template01 where 'MyForm.html' is executed.
I vaguely remember seeing something somewhere indicating you can use '/' and '//' to define the folder level in front of a script. Is this relevant or a red herring?
Dazed and confused
I have a folder on my web server root that holds
template and test scripts. This folder has many sub-folders each with its own template or script.
When I run one of my templates in one sub-folder, I want it to reference a script in another sub-folder on the 'action'
parameter of a submitted form.
How do I point the 'action' statement to a seperate sub-directory without hard coding the entire physical path on the server?
folder
|
|
|--Templates&Tests folder
|
|
|--Template01 folder
| Contains 'MyForm.html'
|
|--Template02 folder
Contains 'MyScript.asp'
In 'MyForm.html':-
<form action="MyScript.asp" method="post" name="Form01">
<input name="Run TestComponent" type="submit">
</form>
'Myscript.asp' will not be found because it does not exist
in the folder Template01 where 'MyForm.html' is executed.
I vaguely remember seeing something somewhere indicating you can use '/' and '//' to define the folder level in front of a script. Is this relevant or a red herring?
Dazed and confused