From:             andrej dot nagy at is-solutions dot sk
Operating system: linux
PHP version:      5.2.9
PHP Bug Type:     *General Issues
Bug description:  corrupted form data after submit

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 bug report at http://bugs.php.net/?id=48069&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=48069&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=48069&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=48069&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=48069&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=48069&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=48069&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=48069&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=48069&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=48069&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=48069&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=48069&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=48069&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=48069&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=48069&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=48069&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=48069&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=48069&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=48069&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=48069&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=48069&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=48069&r=mysqlcfg

Reply via email to