#48069 [Bgs]: corrupted form data after submit
| From: | andrej dot nagy at is-solutions dot sk | Date: | Fri, 24 Apr 2009 17:19:01 +0000 |
| Subject: | #48069 [Bgs]: corrupted form data after submit | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-136211@lists.php.net to get a copy of this message | ||
ID: 48069
User updated by: andrej dot nagy at is-solutions dot sk
Reported By: andrej dot nagy at is-solutions dot sk
Status: Bogus
Bug Type: *General Issues
Operating System: linux
PHP Version: 5.2.9
New Comment:
Fields on the client are all empty when page is displayed.
Only user can type into fields.
There is no javascript behind submit.
Previous Comments:
------------------------------------------------------------------------
[2009-04-24 12:51:06] lbarnaud@php.net
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.
------------------------------------------------------------------------
[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�d%u011B ceny 838 CZK za pokoj a noc
se sn�n�/>
<table cellpadding=
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48069&edit=1