Computing.Net > Forums > Web Development > Link in PHP

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

Link in PHP

Reply to Message Icon

Original Message
Name: Roccer
Date: March 21, 2004 at 16:22:33 Pacific
Subject: Link in PHP
OS: xp
CPU/Ram: 2500/512
Comment:

I am attempting to get something like this:

$url = "a href=" $link "imdb/a";

to work ( only I can't include the < and >s here). It seems that if I put spaces on the outside of the variable, it doesn't work, but with no spaces, it doesn't recognize the variable therein. Is there a coding or tag I can use to get this to work? $url will eventually be written to a text file. Any help would be great.



Report Offensive Message For Removal


Response Number 1
Name: SN
Date: March 21, 2004 at 22:07:09 Pacific
Reply: (edit)

$url = "[a href='$link']imdb[/a]"; or
$url = "[a href=\"$link\"]imdb[/a]"; or
$url="[a href='".$link."']imdb[/a]";

etc.

-SN


Report Offensive Follow Up For Removal

Response Number 2
Name: Roccer
Date: March 24, 2004 at 10:19:21 Pacific
Reply: (edit)

Thank you!!


Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home








Do you have your own blog?

Yes
No
I did before
I will soon


View Results

Poll Finishes In 2 Days.
Discuss in The Lounge
Poll History




Data Recovery Software