I am receiving this error when trying to pass a value via hidden input in a form. I have used this multiple times before, and I can't seem to figure out why it is not passing this time in particular.
Code from the form on index:
<form method="post" action="viewchars.php">
<input type="hidden" name="uname" value="testuser" />
</form>
Code on viewchars.php:
<?php
$user = $_POST["uname"];
?>
The error states that uname is the undefined index.
I am not trying to get the error to just go away, as I actually need the value being passed for the viewchars.php page.
$user = isset($_POST['uname']) ? $_POST['uname'] : null;).