Witam, wiem że Notice: Undefined index: raid_status in C:\xampp\htdocs\PHP\database\inc\raid_status.php on line 6 oznacza to że nie ma takiego indexu, ale nie mogę dojść tu o co chodzi prosiłbym pomocą.
HTML
<?php
include 'inc/dbh.php';
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Connect with MSQL!</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="wrapper">
<div class="raids">
</div>
<div class="add_raid">
<form action="inc/raid_status.php" method="POST">
<input type="text" name="raid_name" placeholder="nazwa raidu"><br>
<select name="raid_status">
<option value="0">NOT DONE</option>
<option value="1">DONE</option>
</select><br>
<input type="date" name="data"><br>
<button type="submit">DODAJ RAID</button>
</form>
</div>
</div>
</body>
</html>
PHP
<?php
include 'dbh.php';
$raid_name = $_POST['raid_name'];
$raid_status = $_POST['raid_status'];
$data = $_POST['data'];
/*$sql = "SELECT * FROM raids WHERE id='1'";
$result = mysqli_query($conn, $sql);
$row = $result->fetch_assoc();*/
$sql = "INSERT INTO raids (nazwa_raidu, done, data)
VALUES ('$raid_name','$raid_status','$data')";
$result = $conn->query($sql);
Z góry dziękuje za pomoc