tb Posted October 28, 2003 Share Posted October 28, 2003 Hey, im working on a news script. It works fine exept for one little thing. When i use the <a> html tag, eg. I want to link to www.phpfreaks.com, the link turns out to be www.mysite.com/www.phpfreaks.com. Off course I don\'t want this. The news text is inserted to a \"text\" row in my table in the database. Any tip would be appriciated :wink: Thanks. Link to comment https://forums.phpfreaks.com/topic/1235-url-trouble/ Share on other sites More sharing options...
shivabharat Posted October 28, 2003 Share Posted October 28, 2003 Have you had a look at this http://www.phpfreaks.com/link2us.php Not sure if you are tyring to do the same Link to comment https://forums.phpfreaks.com/topic/1235-url-trouble/#findComment-4128 Share on other sites More sharing options...
tb Posted October 28, 2003 Author Share Posted October 28, 2003 No, not quite. But I will consider putting up a banner though. I\'m gonna try to do some better explaining: I have made a form, that inserts data into a table for my news script. When I want to create a link I use standard html <a href=\"www.bla-bla.com\">bla-bla</a> so i write this in my form. Then when I read the news in my index, the url is www.mysite.com/www.bla-bla.com which is not the correct url. The problem is that it automaticly adds \"www.mysite.com/\" in front of the adress I would like to link to. And it\'s buggin\' me alot. Link to comment https://forums.phpfreaks.com/topic/1235-url-trouble/#findComment-4130 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.