Re: inserting link into database

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: inserting link into database
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-32613@lists.php.net to get a copy of this message
> How can I insert the following String into a database from a html form. > Keep in mind that I need it to render exactly like a regular string as > shown. So someone would enter that below. Basically, I am allowing html > code. > > <a href="http://www.yahoo.com">yahoo</a> If you are doing a links type page, you could do like I do and store the link (http://www.yahoo.com) and page title (yahoo) separately in your database, and then parse the database to make it look like that: <a href="http://www.yahoo.com">yahoo</a>. If you want to look at my links page (http://www.joescanner.com/links.php) and see how I've got it done, you can; and I would be willing to allow you to view the PHP source if you are interested as well. (just try links.phps)

« previous php.general (#32613) next »