Guest Posted February 9, 2003 Posted February 9, 2003 Hello, I'm working on adding additional images to the Product object. I have gotten everything to work (DB Changes, Class changes, code changes, etc.), and everything display correctly if manually evntered. However, I am having a significant issue uploading a second file. For whatever reason, the $image_name variable (used in admin/categories.php, under the elseif ($HTTP_GET_VARS['action'] == 'new_product_preview') piece, at around line 380 of that file) does not come across from the form when duplicated. I have added the following test code: } elseif ($HTTP_GET_VARS['action'] == 'new_product_preview') { if ($HTTP_POST_VARS) { foreach($HTTP_POST_VARS as $myKey => $myVal) { print "$myKey = $myVal<br>"; } print(" <hr> products_image_name = $products_image_name<br> products_image_name_2 = $products_image_name_2<br> <hr> "); When printing out the POST vars, neither $products_image_name nor $products_image_name_2 is listed... however, when I print the two variables out just below the POST vars, $products_image_name displays correctly, while $products_image_name_2 is empty. In any other circumstance, I would assume that my variable ($products_image_name_2) had not been declared globally, or something... but a search for various terms (products_image_name, products_image, image_name, etc.) yields no results, so I am led to believe that these are part of the incoming form and should be directly accessible. Why, then, can I not access my variable? Thanks in advance for the help! Jeremy Barnes
Recommended Posts
Archived
This topic is now archived and is closed to further replies.