Bug #3792: ä (e.g.) is converted to ä when you got it from hidden form field
| From: | marc at links2linux dot de | Date: | Fri, 10 Mar 2000 14:12:11 +0000 |
| Subject: | Bug #3792: ä (e.g.) is converted to ä when you got it from hidden form field | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-16630@lists.php.net to get a copy of this message | ||
From: marc@links2linux.de
Operating system: Linux 2.2.x
PHP version: 3.0.14
PHP Bug Type: Misbehaving function
Bug description: ä (e.g.) is converted to ä when you got it from hidden form field
If the value in a HTML-form-field (input-tag; type=hidden) is an
HTML-Entitie (like " or > etc.)
these Entities are converted to their real meenings (", > etc.)
automatically, when you use the variablees in a Script after sending.
This should NOT be!
In an input-field TYPE=TEXT it IS NOT!
The metthod (GET or POST) does'nt matter.
Test Script: (look at source HTML-Source) after button is clicked.
----8<--------
<form method=get action=<? echo $PHP_SELF; ?>>
<input type=hidden name=test value="ä">
<input type=submit value=TEST>
</form>
<?
if (isset($test)) {
echo "\$test (normal HTML) : $test<br>";
str_replace("&","&",$test); //convert "&" to
"&" to display ä
echo "\$test ( Plaintext ) : $test (should be: &auml;)";
}
?>
----->8-------