我需要运行 if isset 语句,但我似乎无法正确执行,请协助。
<?php
if(isset($_SESSION['schlid'])) {
foreach($_SESSION['schild'] as $index=>$child){ ?>
<?php echo "<input type='text' name='schild[{$index}]' value='{$child}'/>";?>
<?php } }?>
schild 存储在会话中,但它不显示来自 foreach 循环的输入字段