Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Absolute Path For the Parent Directory

Status
Not open for further replies.

Krus1972

Programmer
Mar 18, 2004
145
US
Does snyone know the proper syntext for specifying the MAINDIRECTORY Directory of a website?

For example in a FORM action statement you would specify action="/directoryname/" and no matter what level within your directory tree this form action is placed the server treats this as an ABSOLUTE and will always direct the action to: MAINDIRECTORY/directoryname/ .

My question is what is the proper syntext to use in the ACTION statment so the server will see it as an absolute and ALWAYS post to the MAINDIRECTORY no matter what level within the directory tree the ACTION comes from?

I don't want to place "../" in front because I am posting to the main directory from many different levels within my web's directory tree. Is there an ABSOLUTE statement that will work?

I am using Windows 2003 Server with IIS 6.0

Thanks.
 
I'm not sure what you mean by MAINDIRECTORY directory. Is it another name for the root directory?

If your root directory has a URL of and you're linking to it from , you can make the link (,form action,whatever) relative to the root rather than the current page by using a leading slash - i.e. "/index.htm" would always point to .

Does that answer your question?

-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top