PHP如何从textarea获取数据

This is my code..I want to fetch data from textarea.. Im using ckeditor to make it active i have use contenteditable="true"...but when i use this it is not able to fetch textarea value

<body>
    <form action="sample_posteddata.php" method="post">
        <div id="container">
            <div id="header">
                <div id="headerLeft">
                    <h2 id="sampleTitle" contenteditable="true">
                    <textarea name="article_title" ></textarea>
                    </h2>
                </div>
            </div>
        </div>
        <div id="columns">
            <div id="column1">
                <div contenteditable="true">
                    <textarea name="article_body" ></textarea>
                </div>
            </div>
        </div>
        <input type="submit" name="submit" value="Submit">
    </form>
</body>

from this code it gives me error of undefined index article_body please suggest me with some solution

In PHP you can fetch form data by form attribute name Try this

$_POST['article_body']` and `$_POST['article_title']

OR

$_REQUEST['article_body']` and `$_REQUEST['article_title']

Remember ckeditor may change the name of that textarea.

Dump post data using

echo'<pre>'; 
print_r($_POST);

And check the exact variable name.

OR

For exact name you can use inspect element (or press f12)