
In my small PHP application, i am posting a data to server using POST method in PHP, which is working fine. But the problem is that it also accepts blank data as well as duplicate value. Is there any way to check and prevent it from posting the blank value?
Thanks!

To prevent the PHP application from accepting blank data and duplicate values ..you need to validate it first. See the code below...
if(isset($_POST['submit']) && !empty($_POST) ){
// now do with your post data
}
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.