Escaping Quotations In <INPUT> tag

From: Date: Sat, 09 Dec 2000 15:31:21 +0000
Subject: Escaping Quotations In <INPUT> tag
Groups: php.general 
Request: Send a blank email to php-general+get-29495@lists.php.net to get a copy of this message
I'm pulling up info from a database so that the user can edit it. It is possible that there may be quotation marks in the field. I'm having trouble escaping these quotations successfully in teh <INPUT> tag. Here's an example.... 1. Ala addslashes() command..... <INPUT TYPE=TEXT NAME=DUMMY VALUE="Hello \"How Are You\""> 2. Ala rawurlencode() command... <INPUT TYPE=TEXT NAME=DUMMY VALUE="Hello %22How Are You%22"> 3. Using &quote; <INPUT TYPE=TEXT NAME=DUMMY VALUE="Hello &quote;How Are You&quote;"> Any ideas?? Thanks, Jeff _______________________________________________________ 2001 Wall Calendars.... * Art, Jazz, Blues, Women's, African-American. * Everyday Discounts. * Excellent paper and reproductions. And as always, a great selection of abstract, contemporary and African-American art prints. PopStreet.com is your avenue to art. http://www.popstreet.com _______________________________________________________

« previous php.general (#29495) next »