hi i am using php and mysql.
i have a form to add record for user.
user should prompt when he will not select any file to upload that you want to save data without image.
Can we do that using javascript..
if any one know it would be appreciated..
Thanks in advance
You can verify the file input using javascript.
Here is an example:
In your html
Note pathExperssion can be customized. Another thing is checking the extension is not too reliable as anyone can inject a file name as extension. Click here for other info.