Wotan Posted September 27, 2006 Share Posted September 27, 2006 sorry, may english is not the best.. i have a problem to show the name of the upload pictures $products_image = new upload('products_image'); $products_image->set_destination(DIR_FS_CATALOG_IMAGES); if ($products_image->parse() && $products_image->save()) { $products_image_name = $products_image->filename;} else { $products_image_name = (isset($HTTP_POST_VARS['products_previous_image']) ? $HTTP_POST_VARS['products_previous_image'] : ''); } $products_image_2 = new upload('products_image_2'); $products_image_2->set_destination(DIR_FS_CATALOG_IMAGES); if ($products_image_2->parse() && $products_image_2->save()) { $products_image_name_2 = $products_image_2->filename; } else { $products_image_name_2 = (isset($HTTP_POST_VARS['products_previous_image_2']) ? $HTTP_POST_VARS['products_previous_image_2'] : ''); } $products_image_3 = new upload('products_image_3'); $products_image_3->set_destination(DIR_FS_CATALOG_IMAGES); if ($products_image_3->parse() && $products_image_3->save()) { $products_image_name_3 = $products_image_3->filename; } else { $products_image_name_3 = (isset($HTTP_POST_VARS['products_previous_image_3']) ? $HTTP_POST_VARS['products_previous_image_3'] : ''); } the titel of the first pic is shown bute the next not why? td class="main"><?php echo TEXT_PRODUCTS_IMAGE; ?></td> <td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_file_field('products_image') . '<br>' . tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . $pInfo->products_image . tep_draw_hidden_field('products_previous_image', $pInfo->products_image); ?></td> </tr> <tr> <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <tr> <td class="main"><?php echo TEXT_PRODUCTS_IMAGE; ?></td> <td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_file_field('products_image_2') . '<br>' . tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . $pInfo->products_image_2 . tep_draw_hidden_field('products_previous_image_2', $pInfo->products_image_2); ?></td> </tr> <tr> <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <tr> <td class="main"><?php echo TEXT_PRODUCTS_IMAGE; ?></td> <td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_file_field('products_image_3') . '<br>' . tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . $pInfo->products_image_3 . tep_draw_hidden_field('products_previous_image_3', $pInfo->products_image_3); ?></td> </tr> here ist a picture what i mean - please have anyone idear? cu Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.