[HELP] <a href="" > help.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Andy11548
Forum Newbie
Posts: 5
Joined: Sat Jul 24, 2010 1:55 pm

[HELP] <a href="" > help.

Post by Andy11548 »

I need help with the <a href="" > code. I've redirected it to my forums on my website. But when I click "Homepage" on the link there, which was origionally directed to < a href="./index.php" >, it now takes me to the forum index. How do I make it so that it directs back to the origionall index.php?

If you need me to reword it, just ask.
Thizzle
Forum Newbie
Posts: 12
Joined: Fri Jul 23, 2010 12:29 pm

Re: [HELP] <a href="" > help.

Post by Thizzle »

Well, I can only assume that the "index" file is in two different directories... So You'll have to add the name of the directory like this <a href="URL/DIRECTORY/index.php"/>
Andy11548
Forum Newbie
Posts: 5
Joined: Sat Jul 24, 2010 1:55 pm

Re: [HELP] <a href="" > help.

Post by Andy11548 »

Thizzle wrote:Well, I can only assume that the "index" file is in two different directories... So You'll have to add the name of the directory like this <a href="URL/DIRECTORY/index.php"/>
I know this, but the first dictionary is just in htdocs on local host.
User avatar
Grizzzzzzzzzz
Forum Contributor
Posts: 125
Joined: Wed Sep 02, 2009 8:51 am

Re: [HELP] <a href="" > help.

Post by Grizzzzzzzzzz »

you'll have to do something like

Code: Select all

<a href="../../index.php"/>
with additional ../ per parent directory


if i'm still not hitting the nail on the head then post your folder/file layout of the specific files
Andy11548
Forum Newbie
Posts: 5
Joined: Sat Jul 24, 2010 1:55 pm

Re: [HELP] <a href="" > help.

Post by Andy11548 »

Grizzzzzzzzzz wrote:you'll have to do something like

Code: Select all

<a href="../../index.php"/>
with additional ../ per parent directory


if i'm still not hitting the nail on the head then post your folder/file layout of the specific files

Thanks dude, it works. Cheers for the Help ;) (Y)
Post Reply