Re: quotes

From: Date: Wed, 25 Jun 2003 14:35:09 +0000
Subject: Re: quotes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-152773@lists.php.net to get a copy of this message
Try a textarea. Example: <textarea rows="5" cols="40"> <?php echo(stripslashes($whatever)); ?> </textarea> On Wed, 2003-06-25 at 10:20, Lso . wrote: > Ok I have been searching to no avail. I have a form that lets you add new > sets of information to a database. Once you add information i have a page > that displays this information in a series of text fields. I have done this > so you can alter the information in the fields hit edit and the information > is updated, you are brought back to the same page and there you see your > updated information. This all works fine. The problem is if the usere > enters a quote. I have used addslashes(), and the information is entered > fine, but when I display the information in the form fields its cut off > right after the quote. I tried stripslashes() didnt work. If i url encode > the input i get the html entity displayed in the form field. Does anyone > have any suggestions? Im just trying to make a nice interface for editing > this data. Thanks in advance. > > Lucas Owens > www.lucasowens.com > www.technoiraudio.com > > _________________________________________________________________ > Add photos to your e-mail with MSN 8. Get 2 months FREE*. > http://join.msn.com/?page=features/featuredemail -- Adam Voigt (adam@cryptocomm.com) Linux/Unix Network Administrator The Cryptocomm Group

« previous php.general (#152773) next »