i have a submit page in html. when i submit the form data, it goes to a php page, which inserts the data in the database.
my question is how would i ensure that the data on the html page is not null or empty without using javascript? is there anyway this could be done in php? thanks!
Simply use control structures as usual:
More advanced example:
There are at least million ways to do validation. Usually you have some kind of framework to rely on. The above examples are merely given for inspiration.