unable to get the variables from innerHTML in symfony2
===

i am new to symfony2. I am designing a dynamic form builder. I have fetching a templete which shows the dynamic form and generates the code for that form in a text area for fetching the template i am using the following code:

    public function newAction(Request $request)
        {
            
    
                return $this->render('AcmeTaskBundle:Default:index.html.twig');
          
        }

when click on submit, i want to fetch the code of that innerHTML in the text area ( i want to fetch the value of the random text area in the new templete). I am using the following code for fetching the new template what should I do to get that dynamic value.
thank you in advance.

    public function subAction(Request $request)
    	{
    		
    		 
    		return $this->render('AcmeTaskBundle:Default:sub.html.php',array(''));
    	
    	}