4
Contributors
3
Replies
4
Views
8 Years
Discussion Span
Last Post by sureronald
0

the easiest way to do this is

<a href="<?php echo "http://".$_SERVER['HTTP_HOST']; ?>/yourpage.php">Click Me!</a>

but I'm not realy sure thats what you wanted. Do you mean how do you get your home page to be called home.php?

0

I think I understand what you mean. The full url (http://....) is only really necessary if you're linking to external websites. Your own urls are fine. The only thing you have to look out for is 'relative' and 'absolute'. For me, making urls absolute (begin with '/') saves a lot of hassle.

0

For pages in your site, you don't need the http part. I think Ardav has provided a better explanation on this.

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.