i want get text input value from php web file for save values to database, but text input not work with php file. And show this error:
Notice: Undefined index: txtUsername in C:/...... line 7 Notice: Undefined index: txtPassword in C:/...... line 8
my html:
<form  action="../Controller/LoginController.php">
    <input type="text" id="txtUsername" />
    <input type="text" id="txtPassword"  />
    <input type="submit" name="btnLogin" value="login" />
</form>
my php file:
$strUsername = $_POST["txtUsername"];  //line 7
$strPassword = $_POST["txtPassword"];  //line 8
 
    