#48069 [Opn->Bgs]: corrupted form data after submit

From: Date: Fri, 24 Apr 2009 12:51:07 +0000
Subject: #48069 [Opn->Bgs]: corrupted form data after submit
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-136200@lists.php.net to get a copy of this message
ID: 48069 Updated by: lbarnaud@php.net Reported By: andrej dot nagy at is-solutions dot sk -Status: Open +Status: Bogus Bug Type: *General Issues Operating System: linux PHP Version: 5.2.9 New Comment: This look like the data is already corrupted before it is sent to PHP. Check your javascript, check the HTML source of the page, etc. Previous Comments: ------------------------------------------------------------------------ [2009-04-24 12:29:11] andrej dot nagy at is-solutions dot sk Description: ------------ Sometimes if form is submitted, I get strange data on the server in php. It happens only about 3 times a day mostly using IE. It seems that the problem might be in the encoding on the client, even though I set the corrent charset using "header('Content-Type: text/html; charset=UTF-8');" as soon as possible. Sometimes I get some HTML tags in the field data e.g. (<table cellpadding= or <input type=) Reproduce code: --------------- form definition <form action="..." method="post" class="search-form" name="reservation_form" id="reservation_form"> There are 2 buttons for submition: <input type="submit" value="Book" class="submit_button" style="width:165px" /> <button type="submit" name="info_only" style="width:165px" value="1" class="submit_button with_value">Inform</button> Expected result: ---------------- Correct form fields data. objekt 15010 pouze v pøípadì ceny 838 CZK za pokoj a noc se snídaní Actual result: -------------- objekt 15010 pouze v p%u0159&#56353;d%u011B ceny 838 CZK za pokoj a noc se sn&#55585;n&#55456;/> <table cellpadding= ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=48069&edit=1

« previous php.bugs (#136200) next »