elMura  
            (Cristopher Mura)
           
           
          
              
                January 25, 2011,  8:51pm
               
               
          1 
           
         
        
          Hello friends,
Have a textArea created with CActiveForm widget:
$oContentForm = $this->beginWidget('CActiveForm');
echo $oContentForm ->textArea($oModel, 'attributeName', array('rows'=>20,'cols'=>125,'id'=>'ContentID'));
$this->endWidget();
 
If in this textArea write HTML tags (<b>Bold Text</b>) and press Submit button, this tags HTML is not sending by post method.
Any idea friends?
Regards,
Thanks.
         
         
           
        
            
            
            
         
         
             
             
          
       
      
        
          
          
            foe_1  
            (foe#1)
           
           
          
              
                January 26, 2011,  7:35am
               
               
          2 
           
         
        
          
 elMura:
 
Hello friends,
Have a textArea created with CActiveForm widget:
$oContentForm = $this->beginWidget('CActiveForm');
echo $oContentForm ->textArea($oModel, 'attributeName', array('rows'=>20,'cols'=>125,'id'=>'ContentID'));
$this->endWidget();
 
If in this textArea write HTML tags (<b>Bold Text</b>) and press Submit button, this tags HTML is not sending by post method.
Any idea friends?
Regards,
Thanks.
 
 
What happens when your send (Normal Text) ?
         
         
        
            
            
            
         
         
             
             
          
       
      
        
          
          
            zaccaria  
            (Matteo Falsitta)
           
           
          
              
                January 26, 2011,  7:43am
               
               
          3 
           
         
        
          Are you sure that data are not sent? Try print_r($_POST).
Maybe data are sent but not collected, it can be a typo or the attribute is not safe (has no validators).
         
         
        
            
            
            
         
         
             
             
          
       
      
        
          
          
            elMura  
            (Cristopher Mura)
           
           
          
              
                January 26, 2011,  1:30pm
               
               
          4 
           
         
        
          Thanks to respond.
Always when send text without HTML tags, not i have problems, but when add the HTML tags, send all text correctly but not the HTML tags.
Are you sure that data are not sent? Try print_r($_POST).
Maybe data are sent but not collected, it can be a typo or the attribute is not safe (has no validators).
 
 
Yes, i sure that the data are not sent, i debug the code with ZendStudio program and immediately after of do submit, the HTML tags are filters and deleted.
This attribute is safe because is a required field.
Best regards,
Thanks.
         
         
        
            
            
            
         
         
             
             
          
       
      
        
          
          
            gusnips  
            (Gustavo)
           
           
          
              
                February 21, 2011, 10:48pm
               
               
          6 
           
         
        
          print  the $_POST how it comes, before you save to db, with or without html and let us know