I'm New To php and I need to add a hyperlink - Please 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
geester
Forum Newbie
Posts: 1
Joined: Thu Jan 24, 2008 12:39 am

I'm New To php and I need to add a hyperlink - Please Help..

Post by geester »

Hi,

I'm new to php, I have a website thats in php, I need to add a hyperlink to my pages,
linking to my other website thats in html....

#1. Will this work?
#2. How do I do it?

The site in php has around 200 pages, so can anyone tell me how to add the link, so
it shows on all pages?

Much appreciated...

:oops:
User avatar
webspider
Forum Commoner
Posts: 52
Joined: Sat Oct 27, 2007 3:29 am

Re: I'm New To php and I need to add a hyperlink - Please Help..

Post by webspider »

#1. Will this work?
yes
#2. How do I do it?

Code: Select all

 
<?php
 echo "<a href=http://www.example.com>linkedtext</a>";
?>
 
The site in php has around 200 pages, so can anyone tell me how to add the link, so
it shows on all pages?
check whether there is some common part which is included in all pages :-)
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: I'm New To php and I need to add a hyperlink - Please Help..

Post by RobertGonzalez »

Everah | Moved to PHP - Code. General Discussion specifically mentions that it is not for code related questions.

Is the current setup using any PHP include/require calls?
thinsoldier
Forum Contributor
Posts: 367
Joined: Fri Jul 20, 2007 11:29 am
Contact:

Re: I'm New To php and I need to add a hyperlink - Please Help..

Post by thinsoldier »

url ?
Warning: I have no idea what I'm talking about.
Post Reply