html - Input type hidden dosent hide in form when the value is larger in php -


i trying setup hidden input field value xml string obtained array . hidden field value displayed in html while when put normal text value in hidden field works fine.

//a large sized associative array convert xml , set hidden field              $item_array=array();             $xml=new simplexmlelement('<origindestinationoption/>');             array_walk_recursive($item_array,array($xml,'addchild'));             echo '<input type="hidden" name="return-xml" value="'.$xml->asxml();.'" />'; ?> 

but displays value in html form.whats wrong code?

note:i using codeigniter framewrok

try

 echo '<input type="hidden" style="display:none;" name="return-xml" value="'.str_replace('"',"'",$xml->asxml());.'" />'; ?> 

Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -