美元邮政不';我不为PHP帖子工作。ISSET报告没有通过post方法预测此类值?

美元邮政不';我不为PHP帖子工作。ISSET报告没有通过post方法预测此类值?,php,Php,我有一个评论部分的表格。这里每个评论都有唯一的ID。 但是,这些评论并没有转发到ActionPHP表单 评论代码: echo '<form action="interact.php" method="post">'; $new_refreshed_ID = 'uni_story_ID_' . $row['ID'] . '_comment_ID_' . $cache_ready_new_comment_ID; echo '<textarea name="'

我有一个评论部分的表格。这里每个评论都有唯一的ID。 但是,这些评论并没有转发到ActionPHP表单

评论代码:

    echo '<form action="interact.php" method="post">';
    $new_refreshed_ID = 'uni_story_ID_' . $row['ID'] . '_comment_ID_' . $cache_ready_new_comment_ID;
    echo '<textarea name="' . $new_refreshed_ID . 'rows="12" cols="70"></textarea>';
    echo '<button type="submit">Submit</button>';
    echo '</form>';
$_SESSION['assoc'] = $row['ID'];
$_SESSION['cache_comment_details'] = $new_refreshed_ID;
echo';
$new\u refreshed\u ID='uni\u story\u ID'$行['ID']。'_注释_ID"$缓存\u就绪\u新建\u注释\u ID;

echo“
echo”使用所有HTML,尤其是表单,验证HTML以进行调试。您还可以使用变量插值和正确的引号,使原始版本更清晰、更易于阅读,例如:
echo”“(HTML并不真正关心属性值使用哪种引号。)@MattGibson这也是一个想法:)
<?php
session_start();


    $assoc = $_SESSION['assoc'];
                $get_comment = $_SESSION['cache_comment_details'];

                if(isset($_POST[$get_comment])) {
                    echo "yea!";
                } else {
                    echo "no!";
                    die();
                }
echo '<textarea name="' . $new_refreshed_ID . 'rows="12" cols="70"></textarea>';
echo '<textarea name="' . $new_refreshed_ID . '" rows="12" cols="70"></textarea>';
<textarea name="<?php print $new_refreshed_ID;?>" rows="12" cols="70"></textarea>