Re: Quotes in inputfields & Reload

From: Date: Tue, 13 Mar 2001 14:05:42 +0000
Subject: Re: Quotes in inputfields & Reload
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-43662@lists.php.net to get a copy of this message
Ah yeah, thx everybody That does it and i am a littel pissed since i can go over alllooott of code now to insert that. BATCH here i come! Jens on 12.03.2001 17:49 Uhr, PHPBeginner.com at php-general@phpbeginner.com wrote: > hi Jens, > > PHP automatically escape the dangerous characters from the user input on > form submissions. > > there are several ways to escape that back : > > stripslashes() > urlencode() > htmlentities() > > read about these, they will soon become your solutions. > > > > Sincerely, > > Maxim Maletsky > Founder, Chief Developer > > PHPBeginner.com (Where PHP Begins) > maxim@phpbeginner.com > www.phpbeginner.com > > > > > -----Original Message----- > From: Jens Nedal [mailto:jnedal@ostry.com] > Sent: Monday, March 12, 2001 7:24 PM > To: php-general@lists.php.net > Subject: [PHP] Quotes in inputfields & Reload > > > Hy everybody, > > Well here is the deal (Probably an easy one 8)) > I have several inputfields and check if the are valid or have content. > If an error occurs and the page reloads i simply echo the content of the > fields back into the input fields, viola, wonderful. > > BUT if there are " eg. Quotes in those fields they suddenly read \" instead > of " as they should 8( > > I guess that the parser is doing something to it there since " is a > sensitive char in php. BUT how can i get the content to be reloaded > correctly into the fields again. > > Here an example of how those fields look like > > <input type=text name=v_email value="<?php echo($v_email); ?>" size=40> > > tried it like this too, no difference: > <input type=text name=v_email value="<?php echo("$v_email"); ?>" > size=40> > > > thx in advance, Jens Nedal > > > -- > 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 (#43662) next »