Jump to content

[SOLVED] Links problem


ironman32

Recommended Posts

I have a series of links that I am using but intead of going to the link when its clicked, the link is added to my own url.

 

for example

The page I am on is http://www.phpfreaks/com. There is a link on this page to go to http://www.webhostfreaks.com. when I click on the link it gets added to the current url

e.g.

 

http://www.phpfreaks/com./http://www.webhostfreaks.com.

 

How can I get the links to take me straight to the page?

 

Here are the links I am using.

$input = array("<a href= \http:www.muscleandstrength.com/exercises/seated-dumbbell-press.html/> Seated dumbell press</a>",
"<a href= \http://www.muscleandstrength.com/exercises/seated-arnold-press.html\>Seated Arnold press</a>",
"<a href=\http://www.muscleandstrength.com/exercises/standing-dumbbell-press.html\>Standing dumbell press</a>", 
"<a href=\http://www.muscleandstrength.com/exercises/standing-arnold-press.html\>Standing Arnold Press</a>");

 

Any help would be appreciated. Thank you

 

 

Link to comment
Share on other sites

$input = array("<a href='http:www.muscleandstrength.com/exercises/seated-dumbbell-press.html'/> Seated dumbell press</a>",
"<a href='http://www.muscleandstrength.com/exercises/seated-arnold-press.html'\>Seated Arnold press</a>",
"<a href='http://www.muscleandstrength.com/exercises/standing-dumbbell-press.html'\>Standing dumbell press</a>", 
"<a href='http://www.muscleandstrength.com/exercises/standing-arnold-press.html'\>Standing Arnold Press</a>");

 

just had a mysterious \ before http://

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.