Warning Undefined array key”user_image”in path:user_reg.php on line124 Trying to access array offset on value of type null inuser_reg.php on line124 [duplicate]

enter image description here

enter image description here

Warning: Undefined array key “user_image” in C:xampphtdocsEcomusers_areauser_registration.php on line 124

Warning: Trying to access array offset on value of type null in C:xampphtdocsEcomusers_areauser_registration.php on line 124

Warning: Undefined array key “user_image” in C:xampphtdocsEcomusers_areauser_registration.php on line 125

Warning: Trying to access array offset on value of type null in C:xampphtdocsEcomusers_areauser_registration.php on line 125

<!-- Image field -->

<div class="form-outline mb-4">
<label for="user_image" class="form-label">User Image</label>
<input type="file" id="user_image" class="form-control" required="required" name="user_image" />

<?php
if (isset($_POST['user_register'])) {
$user_username = $_POST['user_username'];
$user_email = $_POST['user_email'];
$user_password = $_POST['user_password'];
$conf_user_password = $_POST['conf_user_password'];
$user_address = $_POST['user_address'];
$user_contact = $_POST['user_contact'];
$user_image = $_FILES['user_image']['name'];
$user_image_tmp = $_FILES['user_image']['tmp_name'];
$user_ip = getIPAddress();
//insert query
move_uploaded_file($user_image_tmp, "./user_images/$user_image");
$insert_query = "insert into `user_table` (username,user_email,user_password,user_image,user_ip,user_address,user_mobile) values ('$user_username','$user_email','$user_password','$user_image','$user_ip','$user_address','$user_contact')";
$sql_execute = mysqli_query($con, $insert_query);
if ($sql_execute) {
echo "alert('Data inserted succesfully.')";
} else {
die(mysqli_error($con));
}
}
?>

i change multipart spelling too after posting this question