I am using php to simply capture the value inside a textarea and print it to body of the document. Below is the code I am using:
  <!DOCTYPE html>
    <html>
    <head>
        <title>Welcome</title>
    </head>
    <body>
    <form method="post">    
    <textarea name = "ontology" value = "Copy the ontology file here...."></textarea>
    </form>
    <div id = "result">
    <?php
        echo $_POST["ontology"];
    ?>
    </div>
    </body>
    </html>
Below is the tragic output :( :
Notice: Undefined index: ontology in /var/www/html/input_onto.php on line 13
It did not work for simple <input> tag too. Can anyone tell what is happening? It's silly, but I have been breaking my head for this. Please help me out and thanks in advance :)
 
    