I tell you, I have a form where only email addresses are loaded
The idea is that when a user enters, for example, [email protected], the page says, "you enter [email protected]" The problem I have with the echo is that when entering the page, it shows me the input "you entry" , how can I remove that?
<?php echo "usted ingreso $email"; ?>
You can do the
echo
only if the variable exists and is not empty with the conditionalif
.The result of the variable is displayed like this because when the page is loaded, no value is yet assigned to said variable.
If you're using PHP 7, you can do it like this:
Explanation
??
checks if the variable is declaredisset
and not empty.empty