Form submission not working in template file While theming form in template file I used drupal_render to print selected fields of form. But after hit submit button, data is not saving, means submit button is not working.

I know one solution is to use drupal_render_children but it is giving me every child of form, means I'm getting all of the elements of form.

I don't want form's each and every element.

Only selected fields should get rendered. 

Any way to print form selected field elements in tpl file with a working submit button?
You can render form specific form elements with the help of drupal_render. And in order to make submit button work, render all hidden form items and your submit button will work fine then.

Necessary fields for form submission are:

echo drupal_render($form['form_build_id']);
echo drupal_render($form['form_token']);
echo drupal_render($form['form_id']);


and ofcourse your submit button too.