how would i turn a url e.g. http://www.somesite.com in to click-ble link?
btw, i am useing a text box whoes value is inseted into mysql db when submitted..
thanks for your time and help...
URL question :/
Moderator: General Moderators
I think i could help if i understood what u were asking.....what do u mean
If u mean that is getting iserted into a DB through a textbox, just make sure u allow the A tag and...yeah...
That probably, in no way, answers ur question..cuz i don't understand it.....what did u mean?
A tag? lol.how would i turn a url e.g. http://www.somesite.com in to click-ble link?
If u mean that is getting iserted into a DB through a textbox, just make sure u allow the A tag and...yeah...
That probably, in no way, answers ur question..cuz i don't understand it.....what did u mean?
- hob_goblin
- Forum Regular
- Posts: 978
- Joined: Sun Apr 28, 2002 9:53 pm
- Contact:
Code: Select all
function parseurls($data){
$data = " ".$data;
$data = eregi_replace('(її:space:]()ї{}])(www.ї-a-zA-Z0-9@:%_\+.~#?&//=]+)',
'\\1<a href="http://\\2" target="_blank">\\2</a>', $data);
$data = eregi_replace('(її:space:]()ї{}])(http://ї-a-zA-Z0-9@:%_\+.~#?&//=]+)',
'\\1<a href="\\2" target="_blank">\\2</a>', $data);
return trim($data);
}