|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-09-30 17:57 UTC] hholzgra@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 14:00:01 2025 UTC |
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-------