public function get_content() { $content = parent::get_content(); foreach ($this->get_hidden_inputs() as $h_i) { $content->append_tag($h_i); } return $content; }
public function __construct($name, $method = 'POST') { parent::__construct('form', null); $this->set_attribute_str('name', $name); $this->set_attribute_str('method', $method); $this->set_attribute_str('class', 'basic-form'); $this->set_attribute_str('id', 'basic-form'); $this->input_lis = array(); }
$page_manager = PublicHTML_PageManager::get_instance(); $current_page_url = $page_manager->get_script_uri(); $redirect_script_url = clone $current_page_url; $redirect_script_url->set_get_variable('type', 'redirect-script'); $cancel_href = $current_page_url; $mysql_user_factory = Database_MySQLUserFactory::get_instance(); $mysql_user = $mysql_user_factory->get_for_this_project(); $database = $mysql_user->get_database(); $customers_table = $database->get_table('hpi_shop_customers'); $customers_table_renderer = $customers_table->get_renderer(); $customer_regions_table = $database->get_table('hpi_shop_customer_regions'); $shopping_baskets_table = $database->get_table('hpi_shop_shopping_baskets'); $shopping_baskets_table_renderer = $shopping_baskets_table->get_renderer(); $paypal_form_div = new HTMLTags_Div(); $paypal_form_div->set_attribute_str('id', 'paypal_form_div'); $paypal_form = new HTMLTags_Form(); $paypal_form_action = new HTMLTags_URL(); //$paypal_form_action->set_file('https://www.paypal.com/cgi-bin/webscr'); # The real thing $paypal_form_action->set_file('https://www.sandbox.paypal.com/cgi-bin/webscr'); # The sandbox $paypal_form->set_action($paypal_form_action); $paypal_form->set_attribute_str('method', 'post'); // Overall Settings $customer_region = $customer_regions_table->get_row_by_id($_SESSION['customer_region_id']); $currency = $customer_region->get_currency(); $paypal_form->add_hidden_input('cmd', '_cart'); $paypal_form->add_hidden_input('upload', '1'); //$paypal_form->add_hidden_input('business', '*****@*****.**'); # The Real Thing $paypal_form->add_hidden_input('business', '*****@*****.**'); # The Sandbox $paypal_form->add_hidden_input('currency_code', $currency->get_iso_4217_code());
*/ $p_r_formatted = new Formatting_FileName(PROJECT_ROOT); $p_r_formatted_pre = new HTMLTags_Pre($p_r_formatted->get_pretty_name()); if (count($database_class_files) + count($database_renderer_files) + count($table_class_files) + count($table_renderer_files) + count($row_class_files) + count($row_renderer_files) + count($field_class_files) + count($field_renderer_files) == 0) { $p = new HTMLTags_P(); $p->append_str_to_content('No classes found in:'); $p->append_tag_to_content($p_r_formatted_pre); $content_div->append_tag_to_content($p); } else { $database_classes_heading = new HTMLTags_Heading(3, 'Database Classes found in '); $content_div->append_tag_to_content($database_classes_heading); $content_div->append_tag_to_content($p_r_formatted_pre); /* * ------------------------------------------------------------------------- */ $d_c_n_c_form = new HTMLTags_Form(); $d_c_n_c_form->set_attribute_str('name', 'database_class_names_committing'); $d_c_n_c_form->set_attribute_str('action', '/admin/redirect-script.php?module=database&page=database-class-finding'); $d_c_n_c_form->set_attribute_str('method', 'POST'); $d_c_n_c_form->set_attribute_str('class', 'basic-form'); /* * ------------------------------------------------------------------------- */ $d_c_n_c_field_set = new HTMLTags_FieldSet(); $field_set_legend = new HTMLTags_Legend('Database class names committing'); $d_c_n_c_field_set->append_tag_to_content($field_set_legend); /* * ------------------------------------------------------------------------- */ /* * The database class files.
public function get_embed_form() { $embed_form = new HTMLTags_Form(); $embed_form->set_attribute_str('name', 'embedForm'); $embed_form->set_attribute_str('id', 'embedForm'); $embed_label = new HTMLTags_Label('Embed Code:'); $embed_label->set_attribute_str('for', 'embed_code'); $embed_form->append_tag_to_content($embed_label); $embed_input = new HTMLTags_Input(); $embed_input->set_attribute_str('name', 'embed_code'); $embed_input->set_attribute_str('class', 'embedField'); $embed_input->set_attribute_str('value', $this->get_embed_code()); $embed_input->set_attribute_str('onclick', 'javascript:document.embedForm.embed_code.focus();document.embedForm.embed_code.select();'); $embed_input->set_attribute_str('readonly', 'true'); $embed_input->set_attribute_str('type', 'text'); $embed_form->append_tag_to_content($embed_input); return $embed_form; }
<?php /** * The default form for adding an email address to the mailing list. * * @copyright Clear Line Web Design, 2007-07-20 */ //<form $form_email_adding = new HTMLTags_Form(); /* * Form altered by RFI 2007-07-13 */ $form_action = new HTMLTags_URL(); $form_action->set_file('/'); $form_action->set_get_variable('section', 'plug-ins'); $form_action->set_get_variable('module', 'mailing-list'); $form_action->set_get_variable('page', 'mailing-list'); $form_action->set_get_variable('type', 'redirect-script'); $form_action->set_get_variable('add_person'); $form_action->set_get_variable('return_to', urlencode('/?section=project-specific&page=mailing-list')); #echo 'action="' . $form_action->get_as_string() . "\"\n"; $form_email_adding->set_action($form_action); $form_email_adding->set_attribute_str('method', 'POST'); // method="POST" //> $ul_inputs = new HTMLTags_UL(); $li_name = new HTMLTags_LI(); // <label for="name">Name:</label> $label_name = new HTMLTags_Label('Name: '); $label_name->set_attribute_str('for', 'name'); $li_name->append_tag_to_content($label_name);
public function __construct($content = NULL) { parent::__construct($content); $this->inputs = array(); $this->hidden_inputs = array(); }
/* Allow fine control over AVS/CV2 checks and rules by changing this value. 0 is Default ** It can be changed dynamically, per transaction, if you wish. See the VSP Server Protocol document */ if ($strTransactionType !== "AUTHENTICATE") { $strPost = $strPost . "&ApplyAVSCV2=0"; } /* Allow fine control over 3D-Secure checks and rules by changing this value. 0 is Default ** It can be changed dynamically, per transaction, if you wish. See the VSP Server Protocol document */ $strPost = $strPost . "&Apply3DSecure=0"; // Encrypt the plaintext string for inclusion in the hidden field $strCrypt = Shop_ProtxPayments::base64Encode(Shop_ProtxPayments::SimpleXor($strPost, $strEncryptionPassword)); ################################################################################# ## END OF CRYPT BUILDER ################################################################################# $protx_form_div = new HTMLTags_Div(); $protx_form_div->set_attribute_str('id', 'paypal_form_div'); $protx_form = new HTMLTags_Form(); $protx_form_action = new HTMLTags_URL(); //$protx_form_action->set_file('https://ukvps.protx.com/vspgateway/service/vspform-register.vsp'); # The real thing //$protx_form_action->set_file('https://ukvpstest.protx.com/vspgateway/service/vspform-register.vsp'); # The sandbox $protx_form_action->set_file($strPurchaseURL); # The URL set above $protx_form->set_action($protx_form_action); $protx_form->set_attribute_str('method', 'POST'); $protx_form->add_hidden_input('VPSProtocol', '2.22'); $protx_form->add_hidden_input('TxType', $strTransactionType); $protx_form->add_hidden_input('Vendor', $strVSPVendorName); $protx_form->add_hidden_input('Crypt', $strCrypt); $protx_submit_input = new HTMLTags_Input(); $protx_submit_input->set_attribute_str('type', 'submit'); $protx_submit_input->set_attribute_str('value', 'Go to Secure Server'); $protx_form->append_tag_to_content($protx_submit_input);
/** * Link to the refresh page. */ $refresh_page_li = new HTMLTags_LI(); $refresh_page_a = new HTMLTags_A('Check for new orders'); $refresh_page_a->set_href($current_page_url); $refresh_page_li->append_tag_to_content($refresh_page_a); $other_pages_ul->append_tag_to_content($refresh_page_li); $page_options_div->append_tag_to_content($other_pages_ul); $content_div->append_tag_to_content($page_options_div); /* * ------------------------------------------------------------------------- * The order status selecting form. * ------------------------------------------------------------------------- */ $order_status_selecting_form = new HTMLTags_Form(); $order_status_selecting_form->set_attribute_str('name', 'order_status_selecting'); $order_status_selecting_form->set_attribute_str('method', 'GET'); $order_status_selecting_form->set_attribute_str('class', 'table-select-form'); $order_status_selecting_action = clone $current_page_url; // $order_status_selecting_action->set_get_variable('status'); $order_status_selecting_form->set_action(new HTMLTags_URL('/')); $inputs_ol = new HTMLTags_OL(); /* * Select the status. */ $status_li = new HTMLTags_LI(); $status_label = new HTMLTags_Label('Order Status'); $status_label->set_attribute_str('for', 'status'); $status_li->append_tag_to_content($status_label); $status_select = new HTMLTags_Select();
* Link to a blank form in a new tab or window, * so that you can preserve the current query. */ if (isset($_GET['query'])) { $blank_form_link_a = new HTMLTags_A('New Form'); $blank_form_link_a->set_attribute_str('target', '_blank'); $blank_form_link_url = Admin_AdminIncluderURLFactory::get_url($section = 'haddock', $module = 'database', $page = 'select-viewer', $type = 'html'); $blank_form_link_a->set_href($blank_form_link_url); $blank_form_link_p = new HTMLTags_P(); $blank_form_link_p->append_tag_to_content($blank_form_link_a); $content_div->append_tag_to_content($blank_form_link_p); } /* * The form to take the query. */ $query_form = new HTMLTags_Form(); $query_form->set_attribute_str('id', 'query_form'); $query_form->set_attribute_str('method', 'GET'); $action_url = Admin_AdminIncluderURLFactory::get_url('haddock', 'database', 'select-viewer', 'html'); $slash_url = new HTMLTags_URL(); $slash_url->set_file('/'); $query_form->set_action($slash_url); $get_vars = $action_url->get_get_variables(); foreach (array_keys($get_vars) as $key) { $hidden_input = new HTMLTags_Input(); $hidden_input->set_attribute_str('type', 'hidden'); $hidden_input->set_attribute_str('name', $key); $hidden_input->set_attribute_str('value', $get_vars[$key]); $query_form->append_tag_to_content($hidden_input); } /*
public function get_checkout_shipping_location_choice_for_current_session_div(HTMLTags_URL $action) { // $locations = $this->get_shipping_locations(); // $shipping_location_div = new HTMLTags_Div(); // $location_form = new HTMLTags_Form(); // $location_form->set_attribute_str('name', 'shipping_location'); // $location_form->set_action($action); // $location_form->set_attribute_str('method', 'POST'); // $select = new HTMLTags_Select(); // $select->set_attribute_str('name', 'shipping_location'); // foreach ($locations as $location) { // $option = new HTMLTags_Option($location['text']); // $option->set_attribute_str('value', $location['title']); // $select->add_option($option); // } // Set Default Select // if ($shipping_location == '') // { // $select->set_value('uk'); // } // else // { // $select->set_value($shipping_location); // } // $location_form->append_tag_to_content($select); // $submit = new HTMLTags_Input(); // $submit->set_attribute_str('type', 'submit'); // $submit->set_attribute_str('value', 'Go'); // $location_form->append_tag_to_content($submit); // $shipping_location_div->append_tag_to_content($location_form); // return $shipping_location_div; $shopping_baskets_table = $this->get_element(); $database = $shopping_baskets_table->get_database(); $customer_regions_table = $database->get_table('hpi_shop_customer_regions'); $customer_regions = $customer_regions_table->get_all_rows('sort_order', 'ASC'); $customer_regions_div = new HTMLTags_Div(); $location_form = new HTMLTags_Form(); $location_form->set_attribute_str('name', 'shipping_location'); $location_form->set_action($action); $location_form->set_attribute_str('method', 'POST'); $select = new HTMLTags_Select(); $select->set_attribute_str('name', 'customer_region'); foreach ($customer_regions as $customer_region) { $option = new HTMLTags_Option($customer_region->get_name()); $option->set_attribute_str('value', $customer_region->get_id()); $select->add_option($option); } if (isset($_SESSION['customer_region_id'])) { $select->set_value($_SESSION['customer_region_id']); } $location_form->append_tag_to_content($select); $submit = new HTMLTags_Input(); $submit->set_attribute_str('type', 'submit'); $submit->set_attribute_str('value', 'Change'); $location_form->append_tag_to_content($submit); $customer_regions_div->append_tag_to_content($location_form); if (isset($_SESSION['customer_region_id'])) { $selected_customer_region = $customer_regions_table->get_row_by_id($_SESSION['customer_region_id']); $customer_region_description_div = new HTMLTags_P($selected_customer_region->get_description()); $customer_regions_div->append_tag_to_content($customer_region_description_div); } return $customer_regions_div; }
public static function render_body_form_add_email() { $form_email_adding = new HTMLTags_Form(); /* * Form altered by RFI 2007-07-13 */ #$form_action = new HTMLTags_URL(); # #$form_action->set_file('/'); # #$form_action->set_get_variable('section', 'plug-ins'); #$form_action->set_get_variable('module', 'mailing-list'); #$form_action->set_get_variable('page', 'sign-up'); #$form_action->set_get_variable('type', 'redirect-script'); #$form_action->set_get_variable('add_person'); #$form_action->set_get_variable('return_to', urlencode('/?section=project-specific&page=sign-up')); $form_action = MailingList_SignUpURLFactory::get_email_adding_redirect_script(); #echo 'action="' . $form_action->get_as_string() . "\"\n"; $form_email_adding->set_action($form_action); $form_email_adding->set_attribute_str('method', 'POST'); // method="POST" //> $ul_inputs = new HTMLTags_UL(); $li_name = new HTMLTags_LI(); // <label for="name">Name:</label> $label_name = new HTMLTags_Label('Name: '); $label_name->set_attribute_str('for', 'name'); $li_name->append_tag_to_content($label_name); // <input class="name" name="name" type="text" id="name" value=" $input_name = new HTMLTags_Input(); $input_name->set_attribute_str('id', 'name'); $input_name->set_attribute_str('name', 'name'); $input_name->set_attribute_str('type', 'text'); // if ($_SESSION['name']) { // echo $_SESSION['name']; // } $input_name->set_attribute_str('value', isset($_SESSION['name']) ? $_SESSION['name'] : ''); //" size="17" /> #$input_name->set_attribute_str('size', 17); // <br /> $li_name->append_tag_to_content($input_name); $ul_inputs->add_li($li_name); // $li_email = new HTMLTags_LI(); // <label for="name">Email:</label> $label_email = new HTMLTags_Label('Email: '); $label_email->set_attribute_str('for', 'email'); $li_email->append_tag_to_content($label_email); // <input class="email" name="email" type="text" id="name" value=" $input_email = new HTMLTags_Input(); $input_email->set_attribute_str('id', 'email'); $input_email->set_attribute_str('name', 'email'); $input_email->set_attribute_str('type', 'text'); // if ($_SESSION['email']) { // echo $_SESSION['email']; // } $input_email->set_attribute_str('value', isset($_SESSION['email']) ? $_SESSION['email'] : ''); //" size="17" /> #$input_email->set_attribute_str('size', 17); // <br> $li_email->append_tag_to_content($input_email); $ul_inputs->append_tag_to_content($li_email); if (isset($_GET['email_incorrect'])) { $li_force_email = new HTMLTags_LI(); //<label for="force_email">Force email:</label> $label_force_email = new HTMLTags_Label('Force email: '); $label_force_email->set_attribute_str('for', 'force_email'); $li_force_email->append_tag_to_content($label_force_email); //<input // id="force_email" // name="force_email" // type="checkbox" ///> $input_force_email = new HTMLTags_Input(); $input_force_email->set_attribute_str('id', 'force_email'); $input_force_email->set_attribute_str('name', 'force_email'); $input_force_email->set_attribute_str('type', 'checkbox'); $li_force_email->append_tag_to_content($input_force_email); //<br> $ul_inputs->append_tag_to_content($li_force_email); } $form_email_adding->append_tag_to_content($ul_inputs); $li_submit = new HTMLTags_LI(); # <input class="submit" type="submit" name="Submit" value="Submit"> $input_submit = new HTMLTags_Input(); $input_submit->set_attribute_str('id', 'submit'); $input_submit->set_attribute_str('name', 'submit'); $input_submit->set_attribute_str('class', 'submit'); $input_submit->set_attribute_str('type', 'submit'); $input_submit->set_attribute_str('value', 'Submit'); $li_submit->append_tag_to_content($input_submit); $ul_inputs->append_tag_to_content($li_submit); //</form> echo $form_email_adding->get_as_string(); }
private function get_enter_plu_code_form() { $enter_plu_code_form = new HTMLTags_Form(); $enter_plu_code_form->set_attribute_str('name', 'enter_plu_code'); $enter_plu_code_form->set_attribute_str('method', 'GET'); $enter_plu_code_form->set_attribute_str('class', 'table-select-form'); $enter_plu_code_form->set_action(new HTMLTags_URL('/')); $inputs_ol = new HTMLTags_OL(); /* * Select whether you want all products or just those with status==display */ $li = new HTMLTags_LI(); $label = new HTMLTags_Label('PLU Code'); $label->set_attribute_str('for', 'plu_code'); $li->append_tag_to_content($label); $input = new HTMLTags_Input(); $input->set_attribute_str('name', 'plu_code'); $li->append($input); $inputs_ol->append($li); /* * The submit button. */ $go_button_li = new HTMLTags_LI(); $go_button = new HTMLTags_Input(); $go_button->set_attribute_str('type', 'submit'); $go_button->set_attribute_str('value', 'Go'); $go_button->set_attribute_str('class', 'submit'); $go_button_li->append_tag_to_content($go_button); $inputs_ol->add_li($go_button_li); $enter_plu_code_form->append($inputs_ol); /* * The hidden inputs. */ $current_page_url = $this->get_current_page_url(); $enter_plu_code_action = clone $current_page_url; $enter_plu_code_action_get_vars = $enter_plu_code_action->get_get_variables(); foreach (array_keys($enter_plu_code_action_get_vars) as $key) { $form_hidden_input = new HTMLTags_Input(); $form_hidden_input->set_attribute_str('type', 'hidden'); $form_hidden_input->set_attribute_str('name', $key); $form_hidden_input->set_attribute_str('value', $enter_plu_code_action_get_vars[$key]); $enter_plu_code_form->append_tag_to_content($form_hidden_input); } return $enter_plu_code_form; }
/** * Little helper function that sets the GET vars for the results * page of the selection criteria. * * The results page is the products page. */ private static function add_hidden_inputs_for_results_page_get_vars_to_tag_selection_form(HTMLTags_Form $form) { $form->add_hidden_input('section', 'plug-ins'); $form->add_hidden_input('module', 'shop'); $form->add_hidden_input('page', 'products'); $form->add_hidden_input('type', 'html'); /* * Not really necessary because of the way references work * but still... */ return $form; }
public function get_simplified_customer_and_address_adding_form(HTMLTags_URL $redirect_script_url, HTMLTags_URL $cancel_url) { /* form should just have name, email one address box and postcode, country name already filled in */ $customers_table = $this->get_element(); $database = $customers_table->get_database(); //$email_addresses_table = $database->get_table('hpi_shop_email_addresses'); $telephone_numbers_table = $database->get_table('hpi_shop_telephone_numbers'); $addresses_table = $database->get_table('hpi_shop_addresses'); $customer_adding_form = new HTMLTags_Form('customer_adding'); $customer_adding_form->set_attribute_str('class', 'cmxform'); $customer_adding_form->set_attribute_str('id', 'customer-details-form'); $customer_adding_form->set_action($redirect_script_url); #$customer_adding_form = new HTMLTags_TagContent(); # # The Log In Details field set. # $log_in_details_field_set = new HTMLTags_FieldSet(); $log_in_details_field_set->append_tag_to_content(new HTMLTags_Legend('Log In Details')); $log_in_details_field_set_inputs_list = new HTMLTags_OL(); /* * The email_address */ $email_address_field = $customers_table->get_field('email_address'); $email_address_field_renderer = $email_address_field->get_renderer(); $input_tag = $email_address_field_renderer->get_form_input(); $input_tag->set_attribute_str('id', 'email_address'); $email_address_li = $this->get_form_li('email_address', $input_tag); $log_in_details_field_set_inputs_list->append_tag_to_content($email_address_li); /* * The password */ $password_field = $customers_table->get_field('password'); $password_field_renderer = $password_field->get_renderer(); $input_tag = $password_field_renderer->get_form_input(); $input_tag->set_attribute_str('id', 'password'); $password_li = $this->get_form_li('password', $input_tag); $log_in_details_field_set_inputs_list->append_tag_to_content($password_li); $log_in_details_field_set->append_tag_to_content($log_in_details_field_set_inputs_list); $customer_adding_form->append_tag_to_content($log_in_details_field_set); # # The Customer field set. # $customer_details_field_set = new HTMLTags_FieldSet(); $customer_details_field_set->append_tag_to_content(new HTMLTags_Legend('Shipping Details')); $customer_details_field_set_inputs_list = new HTMLTags_OL(); /* * The first_name */ $first_name_field = $customers_table->get_field('first_name'); $first_name_field_renderer = $first_name_field->get_renderer(); $input_tag = $first_name_field_renderer->get_form_input(); $input_tag->set_attribute_str('id', 'first_name'); $first_name_li = $this->get_form_li('first_name', $input_tag); $customer_details_field_set_inputs_list->append_tag_to_content($first_name_li); /* * The last_name */ $last_name_field = $customers_table->get_field('last_name'); $last_name_field_renderer = $last_name_field->get_renderer(); $input_tag = $last_name_field_renderer->get_form_input(); $input_tag->set_attribute_str('id', 'last_name'); $last_name_li = $this->get_form_li('last_name', $input_tag); $customer_details_field_set_inputs_list->append_tag_to_content($last_name_li); /* * The telephone_number */ $telephone_number_field = $telephone_numbers_table->get_field('telephone_number'); $telephone_number_field_renderer = $telephone_number_field->get_renderer(); $input_tag = $telephone_number_field_renderer->get_form_input(); $input_tag->set_attribute_str('id', 'telephone_number'); $telephone_number_li = $this->get_form_li('telephone_number', $input_tag); $customer_details_field_set_inputs_list->append_tag_to_content($telephone_number_li); /* * The full_address * which will be put straight into street_address * * in add_simplified_customer() */ $address_li = $this->get_address_form_input_li(); $customer_details_field_set_inputs_list->append_tag_to_content($address_li); /* * The address_postal_code */ $address_field = $addresses_table->get_field('postal_code'); $address_field_renderer = $address_field->get_renderer(); $input_tag = $address_field_renderer->get_form_input(); $input_tag->set_attribute_str('id', 'postal_code'); $address_postal_code_li = $this->get_form_li('postal_code', $input_tag); $customer_details_field_set_inputs_list->append_tag_to_content($address_postal_code_li); /* * The address_country_name */ $address_field = $addresses_table->get_field('country_name'); $address_field_renderer = $address_field->get_renderer(); $input_tag = $address_field_renderer->get_form_input(); $input_tag->set_attribute_str('id', 'country_name'); if (isset($_SESSION['customer_region_id'])) { $customer_regions_table = $database->get_table('hpi_shop_customer_regions'); $customer_region = $customer_regions_table->get_row_by_id($_SESSION['customer_region_id']); $input_tag->set_attribute_str('value', $customer_region->get_name()); } $address_country_name_li = $this->get_form_li('country_name', $input_tag); $customer_details_field_set_inputs_list->append_tag_to_content($address_country_name_li); $customer_details_field_set->append_tag_to_content($customer_details_field_set_inputs_list); $customer_adding_form->append_tag_to_content($customer_details_field_set); # # SUBMIT BUTTON # $submit_button = new HTMLTags_Input(); $submit_button->set_attribute_str('type', 'submit'); $submit_button->set_attribute_str('value', 'Add'); $submit_button->set_attribute_str('class', 'submit'); $submit_buttons_div = new HTMLTags_Div(); $submit_buttons_div->set_attribute_str('class', 'submit_buttons_div'); $submit_buttons_div->append_tag_to_content($submit_button); $cancel_button = new HTMLTags_Input(); $onclick = 'document.location.href=(\''; $onclick .= $cancel_url->get_as_string(); $onclick .= "')"; $cancel_button->set_attribute_str('type', 'button'); $cancel_button->set_attribute_str('value', 'Cancel'); $cancel_button->set_attribute_str('onclick', $onclick); $cancel_button->set_attribute_str('class', 'submit'); $submit_buttons_div->append_tag_to_content($cancel_button); $customer_adding_form->append_tag_to_content($submit_buttons_div); # The Fields: // $last_added_id = $customers_table->add_simplified_customer( // $_POST['full_name'], // $_POST['password'], // $_POST['email_address'], // $_POST['telephone_number'], // $_POST['full_address'], // $_POST['postal_code'], // $_POST['country_name'], // $_POST['customer_region_id'] // ) return $customer_adding_form; }