I will refator here later:
Function A () {
   $html += B();
    echo $html;
}
Function B () {
   $html = "<form>..";
   returm $html;
}