Jump to content

url trouble


tb

Recommended Posts

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
Share on other sites

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
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.