Link Paths that gotten the better of me

Hi, I got a site going right now, I’m trying to link everything together, maybe you could help me out, if so then I’d appreciate it.

I have a 3 paged site. index.html where the css file resides in and 2 folders. One for images and another called site, where I have login.html (i know its kind of messed up but I’m doing this in Linux. Anyways I’m incorporating cgi as well and that file is in a distant directory.

My question is since I have login.html in its own folder, when I make the links, would I use the following examples for instance:

<a href="../index.html">Go back to home</a>

and if login.html had a form that posted to the cgi file, would I just do:

<form action="../cgi-bin/guestbook.cgi" method="POST">

Its been a while, I’m using Linux so I’m not sure if the dots could throw it off, currently I can’t test it, but if anyone knows that if this should work I’d appreciate it, thanks.

Yes that would work :slight_smile:

You might want to think about using absolute paths like /index.html to avoid confusion (which path am I in now, and where is …?), but that’s up to you.