/    Sign up×
Community /Pin to ProfileBookmark

displaying links

i want to have people to go to another page when they click on the website the problems is that my links is also showing my main website

this is my code

[code=php]

“<b>Website:<a href=$Website> $Website </a></b><br>”;

[/code]

when the links get dispaly when the mouse goes over it shows

[code=php]
[url]http://www.mywebsite.com/www.otherwebsite.com[/url]
[/code]

and
on my source code i get

[code=php]
<a href=www.necc.mass.edu> [url]www.necc.mass.edu[/url] </a>
[/code]

please help

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@NightShift58Jan 08.2007 — That's probably happening because the variable $Webiste only contains the HOST name (i.e. "www.domain.com") without "http://". you need to add "http://" to $Website.[code=php]$Website = "http://" . $Website;[/code]
Copy linkTweet thisAlerts:
@franknuauthorJan 08.2007 — thank you, works perfect
Copy linkTweet thisAlerts:
@NightShift58Jan 08.2007 — You're welcome.
×

Success!

Help @franknu spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...