1. #1
    Ext User
    Join Date
    Feb 2009
    Posts
    5
    Vote Rating
    0
    sintax is on a distinguished road

      0  

    Default Multiple lines in the value of TextArea?

    Multiple lines in the value of TextArea?


    Hi,

    I have the following problem:
    I have a FormPanel with a textarea inside. The "value" of the textarea is taken from a PHP variable with is echoed into the value. If the variable is a single line without any special chars, like enter, ' or " it works perfectly. Whenever the user enters an extra line the form never shows up.

    Here is a snippet:
    Code:
    items: [{
                        xtype: 'textarea',
                        fieldLabel: 'Area content',
                        name: 'cpg_area_content,
                        width: '500',
                        height: '300',
                        value: '<?=$cpg_area_content?>'
                    }]
    How can I get the value to come from the PHP variable? I must be missing something here.

    Thanks.

  2. #2
    Ext User
    Join Date
    Jun 2007
    Posts
    2
    Vote Rating
    0
    gcppersonal is on a distinguished road

      0  

    Default


    <?php echo str_replace("\\n", "<br>", $_GET['data']) ?>

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar