Category Archives: Javascript

How to validate a File Field in PHP by using JavaScript

This post is relate to my previous post where I have showed you how to insert an image. The place that we have been provided to upload an image is same as uploading a file. So we as developers, have … Continue reading

Posted in Javascript, PHP examples | Leave a comment

How to validate a Text Field in PHP by using JavaScript

Today I am going to show you how to write a simple JavaScript function. The scenario is, by the time I click my submit button if there are empty text fields in the form, an alert message will display with … Continue reading

Posted in Javascript, PHP examples | Leave a comment