Adding a link to a line of php
From advanced to novice... come, join in, teach, and learn. Web programming and help. We have stuff on it all: php, html, asp, asp.net, etc. Share your coding expertise too.

Moderators: Forum Experts, Management

Adding a link to a line of php

Postby marcman on Mon Nov 21, 2011 2:22 am

Here's the code...

$creds_text = ( 'Copyright 2011 &copy Your Business / Custom CMS and Site Build by YourUrl.com ');

I'd like "YourUrl.com" to be a link.

Seems what ever html I add isn't quite right.

Thanks!
Last edited by marcman on Wed Nov 23, 2011 1:55 am, edited 1 time in total.
marcman
PRO New Member
PRO New Member
 
Posts: 2
Joined: Mon Nov 21, 2011 2:16 am

Re: Adding a link to a line of php

Postby marcman on Wed Nov 23, 2011 1:54 am

Hello, hello, hello.

Echo, echo, echo.

:)
marcman
PRO New Member
PRO New Member
 
Posts: 2
Joined: Mon Nov 21, 2011 2:16 am

Re: Adding a link to a line of php

Postby augie on Wed Nov 23, 2011 2:48 am

Hi there and welcome! People are starting their holidays. I wish I could help but this stuff is beyond me.;)
Everything that irritates us about others can lead us to an understanding of ourselves. -- Carl Jung

eVGA X58 tri-SLI, i7 930 @ 3.8GHz., Corsair 6GB Dominator, Inno3D GTX470, eVGA260
ASUS P8P67 Pro, i7 2600K @4.60 GHz, 8GB RAM, eVGA GTX 460
User avatar
augie
Community Director
 
Posts: 7870
Joined: Mon Aug 26, 2002 1:55 am
Location: Laurentians, Quebec

Re: Adding a link to a line of php

Postby yeshuas on Wed Nov 23, 2011 3:04 am

I am not a coder or a programer either, sorry
Game Over!!!!!!!!
Image
P5Q Deluxe MB
Windows 7 X86; Windows 7 X64
Q6600 Core 2 Quad w/CNPS9500-LED cooler
4GB Corsair XMS2-PC6400C5 DHX w/heat spreaders
eVGA GeForce GTX 260 216 processing cores 896MB GDDR3
Thermaltake 750W ToughPower modular cabled PS
2-750Harddrive Raid 0
Lian-Li V1000B Plus Case
User avatar
yeshuas
Software Development
 
Posts: 3837
Joined: Wed Jan 17, 2007 3:29 pm
Location: Chicago, IL
Real Name: Daniel Schmidt

Re: Adding a link to a line of php

Postby ar1stotle on Thu Mar 29, 2012 2:02 am

marcman wrote:Here's the code...

$creds_text = ( 'Copyright 2011 &copy Your Business / Custom CMS and Site Build by YourUrl.com ');

I'd like "YourUrl.com" to be a link.

Seems what ever html I add isn't quite right.

Thanks!


I know you probably already found an answer by now, but this thread needs an answer.
Assuming you're text line is getting sent to the browser,

$creds_text = ( 'Copyright 2011 &copy Your Business / Custom CMS and Site Build by <a href="http://www.yoururl.com">YourUrl.com</a> ');

That should be what you're looking for.
Image
Image
User avatar
ar1stotle
PRO BRONZE
PRO BRONZE
 
Posts: 3841
Joined: Sun May 16, 2004 1:59 am
Location: New Orleans, Louisiana


Return to HTML, CSS, and Scripts

Who is online

Users browsing this forum: No registered users and 0 guests