Hi,
I ahve been able to create some pages to allow users to upload files to the server and also add the filename to a table in a DB however, I have one problem that perhaps someone could help me with.
When the user wants to upload a file the first thing they have to do is add the filename to the DB, the field in the DB is indexed to not allow duplicates, at the moment if a duplicate filename is submitted then all that happens is a error message on the web page.
Couls someone help me to be able to validate the DB on submit that the filename does not already exist and if it does then display a message to the user before the submit
Regards
Paul
I ahve been able to create some pages to allow users to upload files to the server and also add the filename to a table in a DB however, I have one problem that perhaps someone could help me with.
When the user wants to upload a file the first thing they have to do is add the filename to the DB, the field in the DB is indexed to not allow duplicates, at the moment if a duplicate filename is submitted then all that happens is a error message on the web page.
Couls someone help me to be able to validate the DB on submit that the filename does not already exist and if it does then display a message to the user before the submit
Regards
Paul