A Digital Age Deserves A Digital Leader

Adding a link to a line of php

Adding a link to a line of php

Postby marcman » 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.
PRO New Member
Posts: 2
Joined: Mon Nov 21, 2011 2:16 am

Re: Adding a link to a line of php

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

Hello, hello, hello.

Echo, echo, echo.

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

Re: Adding a link to a line of php

Postby augie » 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
Community Director
User avatar
Posts: 7870
Joined: Mon Aug 26, 2002 1:55 am
Location: Laurentians, Quebec

Re: Adding a link to a line of php

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

I am not a coder or a programer either, sorry
Game Over!!!!!!!!
Image
ASUS Maximus V Gene MB
Windows 8 X64; Windows 7 X64; Windows 7 X86
Intel I5-3570K
16GB Corsair Vengeance Ram
eVGA GeForce GTX 550 TI
Corsair GS700 PS
1TB Seagate SATA 6.0Gb HD
Thermaltake Case
Software Development
User avatar
Posts: 5075
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 » 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
PRO BRONZE
User avatar
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: Exabot [Bot] and 0 guests