注释/回复ID是表单实际发送的值。您可以通过$_GET
:
// Default is "no reply" eq. 0
$id = 0;
// Handle replies
if ( isset( $_GET[\'replytocom\'] ) )
{
$id = filter_var(
$_GET[\'replytocom\'],
FILTER_VALIDATE_INT,
# or:
# FILTER_SANITIZE_NUMBER_INT
array(
\'options\' => array(
\'min_range\' => 1,
),
# @link http://www.php.net/manual/en/filter.filters.flags.php
# \'flags\' => \'\',
)
);
if ( FALSE === $id )
break;
$id = absint( $_GET[\'replytocom\'] )
}
然后您可以访问回复-
$id
.