This commit is contained in:
haoouba
2021-05-16 22:10:36 +08:00
parent e2c5b31754
commit cd27486b67
6 changed files with 16 additions and 16 deletions

View File

@@ -27,11 +27,11 @@
</div>
<div class="list">
<?php
session_start();
$num1 = rand(1, 10);
$num2 = rand(1, 10);
$_SESSION['commentCode'] = $num1 + $num2;
?>
<input type="hidden" name="num1" value="<?php echo $num1 ?>">
<input type="hidden" name="num2" value="<?php echo $num2 ?>">
<input type="text" autocomplete="off" name="sum" placeholder="计算:<?php echo $num1 ?> + <?php echo $num2 ?> = ?" />
</div>
</div>
@@ -63,7 +63,7 @@
<div class="owo joe_owo__contain"></div>
<div class="submit">
<span class="cancle joe_comment__cancle">取消</span>
<button type="submit">发评论</button>
<button type="submit">发评论</button>
</div>
</div>
</form>