Re: Escaping Quotations In <INPUT> tag

From: Date: Sun, 10 Dec 2000 04:46:10 +0000
Subject: Re: Escaping Quotations In <INPUT> tag
Groups: php.general 
Request: Send a blank email to php-general+get-29537@lists.php.net to get a copy of this message
Hi, Sorry I am new to PHP and HTML, but wouldn't the following solve your problem: <INPUT TYPE=TEXT NAME=DUMMY VALUE='Hello "How Are You"'> with me it works fine and is pretty simple :) dimo > ----- Original Message ----- > From: "Jeff Gannaway" <webmaster@cactusgraphics.com> > To: <php-general@lists.php.net> > Sent: Saturday, December 09, 2000 10:34 PM > Subject: [PHP] Escaping Quotations In <INPUT> tag > > > > 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 > > _______________________________________________________ > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > >

« previous php.general (#29537) next »