Butterfly Bill Posted November 15, 2009 Posted November 15, 2009 I have been trying to decipher some code on the create_account.php page. What I am interested in is greating some extra input boxes and radio buttons on the sign-in page. I have found the following code that seems to relate to , for example, the customer's first name: $firstname = tep_db_prepare_input($HTTP_POST_VARS['firstname']); $sql_data_array = array('customers_firstname' => $firstname, $sql_data_array = array('customers_id' => $customer_id, 'entry_firstname' => $firstname, $sql_data_array = array('customers_firstname' => $firstname, tep_session_register('customer_first_name'); <td class="main"><?php echo tep_draw_input_field('firstname') . ' ' . (tep_not_null(ENTRY_FIRST_NAME_TEXT) ? '<span class="inputRequirement">' . ENTRY_FIRST_NAME_TEXT . '</span>': ''); ?></td> There are some things I can't figure out: "tep_db_prepare_input" What is the "tep_db"? Is that a variable or a database name? Likewise "echo tep_draw_input_field('firstname')" This looks like it might be the code that actually draws the box on the viewer's page, but I have scoured the tutorials on w3schools.com, tizag.com, and us3.php.net and I haven't been able to find "draw_input_field" on any of them. Is there somewhere in the web a truly comprehensive list of all possible commands in php? What I am mostly interested in is making simple text inputs, text area boxes, and radio buttons, and hooking them up to the SQL.
germ Posted November 17, 2009 Posted November 17, 2009 They're both custom functions written by the osC coders. tep_db_prepare_input can be found in /catalog/includes/functions/database.php tep_draw_input_field is in /catalog/includes/functions/html_output.php That whole "functions" folder is nothing but files full of custom functions written by the osC coders If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Recommended Posts
Archived
This topic is now archived and is closed to further replies.