what am i doing when the form is submitted....
f(isset($submit)){
if ($category == "") {
echo "Please fill in the category Field";
exit;
}
if ($subcategory == "") {
echo "No subcategory has been entered";
exit;
}
if ($name == "") {
echo "Please fill in the Name field";
exit;
}
if ($description == "") {
echo "Please fill in the description field";
exit;
}
if ($price == "") {
echo "Please enter a Price for your item";
exit;
}
if ($image_name == "") {
echo "Please enter a name for your image";
exit;
}
if ($userfile == "") {
echo "No image file has been selected for uploading";
exit;
}
and then if the fields are not empty...thenb these functions are executed
do_upload($userfile,$image_name);
do_upload_thumb($userfile,$image_name);
do_update($category,$subcategory,$name,$description,$price,$image_name);