Re: Parse URLs

From: Date: Sun, 24 Nov 2002 02:46:32 +0000
Subject: Re: Parse URLs
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-125762@lists.php.net to get a copy of this message
from the archives of the list http://www.phpbuilder.com/mail/php-windows/2001042/0222.php -tom culpepper Stephen wrote:
They are entering in a whole paragraph or two of text and I want to search the paragraph for URLs then make it a clickable URL and then store it in a MySQL database. ----- Original Message ----- From: "Tom Culpepper" <tom@onthei.com> To: "Stephen" <webmaster@melchior.us>; <php-general@lists.php.net> Sent: Saturday, November 23, 2002 9:05 PM Subject: Re: [PHP] Parse URLs
not entirely sure what is going on there, but if the user is entering the url in a html form. Then just grab the variable on the next page and run this $url=user $HTTP_GET_VARS["url"]; (or $HTTP_POST_VARS depending on your form method) $url="<a href=".$url.">".$url."</a>"; echo $url; the only way to change it dynamically on the same page would be
javascript.
-tom culpepper Stephen wrote:
I have a simple post script and I want to make it so if a user types in a URL of some sort, to change it to make it clickable. How could I do
that?
Thanks, Stephen Craton http://www.melchior.us "Life is a gift from God. Wasting it is like destroying a gift you got from the person you love most." -- http://www.melchior.us
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#125762) next »