I received the following error message when I tried to submit the content to my form. How may I fix it?
Notice: Undefined index: filename in D:\wamp\www\update.php on line 4
Example Update.php code:
<?php
$index = 1;
$filename = $_POST['filename'];
echo $filename;
?>
And $_POST['filename'] comes from another page:
<?php
$db = substr($string[0],14) . "_" . substr($string[1],14) . "_db.txt";
?>
<input type="hidden" name="filename" value="<?php echo $db; ?>">
Notice: Undefined index: filename in D:\wamp\www\update.php on line 4, obviously he's accessing it through localhost or he wouldn't get that error.