I have an input field with name:"fsearch" from which i want to get inputted data.
I am using if(issetwith $_POST properties but php cannot detect it,it is returning false.Here is my code
<!----------------------------------------------------------------
HTML
----------------------------------------------------------------->
<form method="POST">
<p>Търсене на храни: <input type="text" name="fsearch" id="food_search"></p>
</form>
<!----------------------------------------------------------------
PHP
----------------------------------------------------------------->
<?php
if(isset($_POST['fsearch']) && !empty($_POST['fsearch'])) {
echo "True!";
}
else{
echo "false";
}
?>
I don't know where i have a mistake :/
EDIT:I am using it for google like instant search,i don't really need submit button.It must compare inputted information with database ROW and if there are letters matched,to print it out.