So I'm trying to save input values from a form in case the page reloads and I'm setting the initial value at the start of the script like like so:
$username = "";
$password = "";
$password_confirmation = "";
$email = "";
$email_confirmation = "";
$business_name = "";
Then if the form has been submitted and the server request method has been set to "POST" I set every individual variable to its corresponding value like so:
$username= filter_input(INPUT_POST, "username", FILTER_SANITIZE_STRING);
etc...
Then on each input element I'm echoing the corresponding value:
<input type="text" id="username" name="username" placeholder="Username" value="<?php echo $username; ?>">
So my question is, if for some reason filter_input fails and returns a NULL value and if I echo that NULL value will I have any trouble?