I have the following PHP file:
<?php
    echo <<<_END
    <form method='POST' action='index.php' enctpye='multipart/form-data'>
    New Content: <input type='text' name='content'/><br/>
    New Image: <input type="file" name='image' size='10' /><br/>
    Products:
        <select name="filename">
        <option value="product1.txt">Product 1</option>
        <option value="product2.txt">Product 2</option>
        <option value="product3.txt">Product 3</option>
        </select>
    </form> 
    _END;
    echo <<<_END
    <input type="submit" value="Upload"/>
    _END;
    echo $_POST["filename"];
?>
I am getting this error when i try to run this.
Notice: Undefined index: filename in `C:\xampp\htdocs\index.php` on line 18
Sorry, I am new to PHP but should this not echo either product1.txt, product2.txt or product3.txt?
 
     
     
     
     
    