0

i am creating a image gallery that uses different pages. i use simple html menu to link those pages but it was not redirecting to their orinal location.

<ul>
<li class="menu"><a href="new/index.php">Aww</a></li>;
 <li class="menu"><a href="mew1/index.php">Hot</a></li>;
<li class="menu"><a href="new2/index.php">Chicks</a></li>;

</ul>

i have no clue that what to do!!

4
Contributors
4
Replies
5
Views
4 Years
Discussion Span
Last Post by Webville312
0

This is not strictly a PHP question, maybe it would be better to seek help in HTML forum on DW. But anyway, html code seem to be OK. Check whether the paths in the href attribute are correct. What exactly does happen when you click on particular link?

0

As broj1 said this is not PHP related, but if all 3 folders (new, new1, new2) are in the same directory, you need to return back up 1 file level after visiting each link.
<li class="menu"><a href="/new/index.php">Aww</a></li>;
Adding the extra forward slash is like telling your browser to return to the root folder and start looking for the file from there.
It all depends on your directory structure though.

0

Also in the second link there might bi an error in the URL's directory:

<li class="menu"><a href="mew1/index.php">Hot</a></li>;

Didi you really mean mew1?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.