Post方法不返回textarea的值

Mut*_*teX 0 html php forms

post方法有问题.
我有一个html表单,我使用textarea作为禁用,textarea 的值来自另一个页面的帮助下的数据库.

<textarea disabled name="sms" id="sms">
<?php echo $value; //Here the value of textarea and it shows on it?>  
</textarea>
Run Code Online (Sandbox Code Playgroud)

我的PHP代码是 -

<?php 
if(isset($_POST['submit'])){
echo $_POST['sms']; //This line prints nothing
}
Run Code Online (Sandbox Code Playgroud)

我的HTML代码 -

<form action="" method="POST">
<textarea disabled name="sms" id="sms"> 
<?php echo $value; //Here the value of textarea and it shows on it?>  
</textarea>
<input type="submit" name="submit"/>
</form>
Run Code Online (Sandbox Code Playgroud)

当我想通过它的值来验证它时,我变空了.
为什么会这样?
需要帮忙!!

Deb*_*hal 5

禁用的字段不会发布到服务器.发布只读字段,因此如果您确实需要该字段的内容,则可以将其更改为只读而不是禁用.

例如,而不是

<textarea name="sms" id="sms" disabled>
Run Code Online (Sandbox Code Playgroud)

尝试

<textarea name="sms" id="sms" readonly>
Run Code Online (Sandbox Code Playgroud)