iamyespee Posted June 27, 2009 Posted June 27, 2009 Now am updating my OSc site's with some features.. 1) Individual price update is done.. 2) while working in total price update, I need to get the textbox value using arrays.. Update Button displaying code : echo tep_draw_form('update_price', FILENAME_CATEGORIES, 'cPath=' . $cPath . '&action=total_update', 'post')."</td><td>".tep_draw_hidden_field('pID', $products['products_id']).tep_image_submit('button_update.gif', IMAGE_UPDATE)."</td></form>"; Script for action 'Total Update': case 'total_update': for($pidi=0; $pidi <= $products_count; $pidi++) { $ptest = $_POST["'". "products_price" . $pid[$pidi]. "'"]; $sql_data_array1 = array('products_price' => tep_db_prepare_input($HTTP_POST_VARS["'". "products_price" . $pid[$pidi]. "'"])); $update_sql_data1 = array('products_last_modified' => 'now()'); $sql_data_array1 = array_merge($sql_data_array1, $update_sql_data1); tep_db_perform(TABLE_PRODUCTS, $sql_data_array1, 'update', "products_id = '" . (int)$pid[$pidi] . "'"); } break; in that $pid[] = I've already store the product's id.. while the records is loading.. I need your help, to get the textbox value while the form is submitted... Thanks..
Recommended Posts
Archived
This topic is now archived and is closed to further replies.