sorry about the title, i just don't know how to call my problem.
to start with, i have a 2 php pages.
Page A.php (an update page)
- contains text boxes, drop down lists, an upload file option and a submit button. when you click submit, all details will go to page B.php. All text boxes have default values as well as the upload file option. so that when i edit it,
Page B.php
- saves the updates from page A. contains php codes.
Problem.
when i update page A all details from the text boxes, drop down list and upload file are saved to my database but when i update page A without browsing for a file to upload, all the details from the text boxes and lists are saved but then my database gets overwritten. what happens is that, emp_file from my database is now empty.
sorry or the explanation. i hope its understandable
............................................................................................
THIS SIGNATURE IS BY::: AGENT COSMIC ----------QUOTE BY:::TECHY
to start with, i have a 2 php pages.
Page A.php (an update page)
- contains text boxes, drop down lists, an upload file option and a submit button. when you click submit, all details will go to page B.php. All text boxes have default values as well as the upload file option. so that when i edit it,
Code:
input type="text" name="namec" id="name" value="<?php echo $employees->name ?>"
input type="file" name="file" id="file" value="<?php echo $employees->file ?>"
Page B.php
- saves the updates from page A. contains php codes.
Problem.
when i update page A all details from the text boxes, drop down list and upload file are saved to my database but when i update page A without browsing for a file to upload, all the details from the text boxes and lists are saved but then my database gets overwritten. what happens is that, emp_file from my database is now empty.
sorry or the explanation. i hope its understandable
THIS SIGNATURE IS BY::: AGENT COSMIC ----------QUOTE BY:::TECHY