Home > Article > Backend Development > How to implement the query when the php text box is empty
php does not query if the text box is empty
phpIt is very simple to determine whether a variable is empty, just use empty That’s it. The following demonstrates how to make the form content empty without querying.
1. First write the query form
Submit a wd to the server through get
Document
2. Then make a judgment. The wd is the content of the text box. Use empty for empty judgment
When the content of the text box is empty, the program will execute die and exit, and subsequent query statements will not be executed.
Effect:
##For more PHP related knowledge, please visitPHP Chinese website!
The above is the detailed content of How to implement the query when the php text box is empty. For more information, please follow other related articles on the PHP Chinese website!