|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3792 ä (e.g.) is converted to ? when you got it from hidden form field
Submitted: 2000-03-10 09:12 UTC Modified: 2002-09-30 17:57 UTC
From: marc at links2linux dot de Assigned:
Status: Not a bug Package: Misbehaving function
PHP Version: 3.0.14 OS: Linux 2.2.x
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: marc at links2linux dot de
New email:
PHP Version: OS:


 [2000-03-10 09:12 UTC] marc at links2linux dot de
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.
<form method=get action=<? echo $PHP_SELF; ?>>
<input type=hidden name=test value="&auml;">
<input type=submit value=TEST>

if (isset($test)) {
echo "\$test (normal HTML) : $test<br>";
str_replace("&","&amp;",$test); //convert "&" to "&amp" to display &auml;
echo "\$test ( Plaintext ) : $test (should be: &amp;auml;)";


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-30 17:57 UTC]
browser problem

php can't even determine the field type data came from,
so there is no chance that it mangles hidden fields only
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Jun 14 08:01:24 2021 UTC