Im trying to save form input after submitting the form, I tried this:
public $username;
public function loginForm() {
$this->login =
"<form action='' method='post'>" .
"<input id=first_name type=text class=validate name=username value=$username>" .
if (isset($_POST["submit"]) && (empty($_POST["username"]))) {
$this->username = $_POST["username"];
It still says that variable username is not defined, what am I doing wrong?