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

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Link in PHP

Reply to Message Icon

Name: Roccer
Date: March 21, 2004 at 16:22:33 Pacific
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.




Sponsored Link
Ads by Google

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

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

etc.

-SN


0

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

Thank you!!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Running my own web server web site creation



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


Sponsored links

Ads by Google


Results for: Link in PHP

link in php www.computing.net/answers/webdevel/link-in-php/3999.html

Date in php www.computing.net/answers/webdevel/date-in-php-/506.html

Open URLs in PHP w/out opening wind www.computing.net/answers/webdevel/open-urls-in-php-wout-opening-wind/199.html