$formElement = new Varien_Data_Form_Element_Text(); $formElement->setName('example_text'); $formElement->setValue('Hello world!'); $data = $formElement->getData(); echo $data; // Output: Hello world!In this example, we create a new text form element and set its name and value. Then we retrieve the data using the getData() method and print it to the screen. This code example belongs to the Varien package library in Magento.