we have a form created in php that can submit complaints. Our problem is what are the codes to detect the blank fields and it should refresh the page if there is required field.
? Favorite Answer
You Can use java script to validate your page.
you just have to create one java script function to validate your page input field.
You can search java script validation in google you will easily find so many example.
Source(s): The best example you will find here..