codes on how to return page if all fields are not filled up completely or if it’s required?

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.

Answer
🥇 Favorite Answer

  • HI,

    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..

    http://www.wschools.com/

  • I wouldn’t use php for this, simple JavaScript will do the job.

  • See also  I want to start Website Designing and hosting Business. Please Guide me.?

    Leave a Comment