Re: Quotes getting screwed up in form fields

From: Date: Sat, 27 Jul 2002 15:20:57 +0000
Subject: Re: Quotes getting screwed up in form fields
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-109972@lists.php.net to get a copy of this message
I would guess your value doesn't have double quotes around. <input type="text" value="<?php echo $var; ?>" size="20 "/> Because what might happen is this: <input type=text value="New York \"City\" size=20 Also, take a look at stripslashes() to remove the \ before the ". -- Julio Nobrega Pode acessar: http://www.inerciasensorial.com.br "Monty" <monty3@hotmail.com> escreveu na mensagem news:B9679BD5.1242A%monty3@hotmail.com... > If someone enters this into a field... > > New York "City" > > and I need to re-display it in the field (if an error occurred, for > example), this is what's in the field... > > New York \ > > I have another multi-line text field that I used quotes in and this doesn't > happen with that field, even though they are both being treated in the same > manner. What am I missing? >

« previous php.general (#109972) next »