I have this code:
if (isset($_POST['food-input']) && $_POST['food-input']!="") {
echo "RABOTI !!";
}
'food-input' is the name of my Input box with type="text"
it, but it doesn't print given echo, what can i do to make it work. And other question will code work with !=""
at the end,i wanna tell to server if'food-input' have something in it and IS NOT EMPTY(second $_POST method) to post the given information. Thanks!!
EDIT: There is the HTML .
<!----------------------------------------------------------------
HTML
----------------------------------------------------------------->
<p>Търсене на храни: <input type="text" name="food-input" id="food_search"></p>
<div id="food_search_result"></div>