I have a one textbox. It name is example.
<input type="text" name="example"/>
I want to check, any data is coming from example or not.
I tried use code as below:
<?php
if(empty($_POST["example"]))
{
echo "You need to enter any text to example box.";
}
?>
But this code is printing,when I enter the page is first.
I want to see printed data, only when click submit.
1 Answer