6 - Site Side - Form Display
To display the form you can use again the BpForm class.
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
<form name="formName" id="formId" action="my_form_action.php" method="post" enctype="multipart/form-data">
// only parse a specific fieldset
echo BpForm::parseForm($this->form, 'fieldset_name');
// you may want to add actions buttons using a common layout you can use in all your extension's views
$layout = Bp::loadLayout( 'my_buttons_layout', 'my_folder_name_inside_layouts_folder');
$html = $layout->render( array('data' => 'for_buttons'));
We know that in site side you may want to display the form in a lot of different layouts so the class only parse just a form's fieldset, the one you pass as second parameter.
If your form has 5 fieldsets (to say), you have to repeat the command 5 times. This gives you the option to design a very complex layout (like Joomla's general configuration in admin side, for example) with just few lines of html and then just parse the specific fieldset in each box.