[PHP] Re: Quotes getting screwed up in form fields

2002-07-27 Thread lallous
if you're using Apache, try creating an .htaccess file with this line in it: php_value magic_quotes_gpc 1 Monty [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... If someone enters this into a field... New York City and I need to re-display it in the field

[PHP] Re: Quotes getting screwed up in form fields

2002-07-27 Thread Julio Nobrega
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:

[PHP] Re: Quotes getting screwed up in form fields

2002-07-26 Thread Chris Earle
http://www.php.net/manual/en/function.stripslashes.php Check that out, it might help. Monty [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... If someone enters this into a field... New York City and I need to re-display it in the field (if an error occurred,