| 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
|
Original Message
|
Name: Roccer
Date: March 21, 2004 at 16:22:33 Pacific
Subject: Link in PHPOS: xpCPU/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
|

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