Hello!
How can I please check if a variable (which I have taken from a user input form) is emty or not?
(This is on the page after the form so I would prefer PHP and not java script)
(I will later use the variable in a "if-query" )
Thanks,
thats an easy one 🆒 Just use the function empty() like this:
if(empty($username)) { echo "Hey, you forgot your name!"; exit; }