i ahve a form in that visitors can type their information and their website address. but when they give their website adddress like http:www//sitename.com it wont hyperlink. please anybody help me how to hyperlink taht one?
sorry .ok i will exllain my problem. i ahve a textare in my form in which visitors give their information with their website address. fo example
"i am afreelance webdesigner for more information go to my website www.sitename.com"
this information get stored in the databse
but i need to hyperlink that site name automatically. becose i canot force the vistiors to write <aherf> tag. i want my code to detect www and http and convert that site into hyerlink.i hope you understood my problem
You can either allow BB codes to be used like most web forums, or if you truly don't want users to have to type any tags (like these cool forums here), you'll have to parse the message and look for a web address. Probably using regular expressions to determine what a valid address in your text should look like.