function custom_registration()
{
    //if the form has submitted
    if (isset($_POST["submit"])) {
        //check for errors
        $error = validate_registration_form();
        if ($error == "") {
            //success
            register();
        } else {
            $framework = get_option("framework", "foundation");
            if ($framework == "foundation") {
                show_registration_form_foundation($error);
            } else {
                if ($framework == "bootstrap") {
                    show_registration_form_bootstrap($error);
                }
            }
        }
    } else {
        $framework = get_option("framework", "foundation");
        if ($framework == "foundation") {
            show_registration_form_foundation();
        } else {
            if ($framework == "bootstrap") {
                show_registration_form_bootstrap();
            }
        }
    }
}
function custom_registration()
{
    //structure for handling a form
    //if the form has been submitted
    if (isset($_POST["Submit"])) {
        //check for errors
        $error = validate_registration_form();
        if ($error == "") {
            //success
            register();
        } else {
            //get the current framework
            //if it is empty default will be html5
            $framework = get_option("framework", "html5");
            if ($framework == "html5") {
                show_registration_form_html5($error);
            } else {
                if ($framework == "bootstrap") {
                    show_registration_form_bootstrap($error);
                } else {
                    if ($framework == "foundation") {
                        show_registration_form_foundation($error);
                    }
                }
            }
        }
    } else {
        //get the current framework
        //if it is empty default will be html5
        $framework = get_option("framework", "html5");
        if ($framework == "html5") {
            show_registration_form_html5();
        } else {
            if ($framework == "bootstrap") {
                show_registration_form_bootstrap();
            } else {
                if ($framework == "foundation") {
                    show_registration_form_foundation();
                }
            }
        }
    }
    //end else submit
}