Re: [PHP] Quotes in inputfields & Reload

2001-03-13 Thread Jens Nedal

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 [EMAIL PROTECTED]
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)
> [EMAIL PROTECTED]
> www.phpbeginner.com
> 
> 
> 
> 
> -Original Message-
> From: Jens Nedal [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 12, 2001 7:24 PM
> To: [EMAIL PROTECTED]
> 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
> 
> 
> 
> tried it like this too, no difference:
> " size=40>
> 
> 
> thx in advance, Jens Nedal
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Quotes in inputfields & Reload

2001-03-12 Thread PHPBeginner.com

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)
 [EMAIL PROTECTED]
 www.phpbeginner.com




-Original Message-
From: Jens Nedal [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 12, 2001 7:24 PM
To: [EMAIL PROTECTED]
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



tried it like this too, no difference:
" size=40>


thx in advance, Jens Nedal


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]