Convert to clickable hyperlink when the user type a url

If a user type a url in the text field, it should be displayed in the output webpage as clickable hyperlink. How to do it in a php form?

i want to make a guestbook… and have to allow the visitors to add links in their comments…