gpt4 book ai didi

php - 表单提交上的未定义索引

转载 作者:太空宇宙 更新时间:2023-11-04 16:27:52 25 4
gpt4 key购买 nike

<分区>

我在禁用的 textarea 中写了一系列 id(例如“3,4,31”)(到目前为止工作正常)并希望通过 GET 提交。我不明白为什么我不断收到以下代码的未定义索引错误:

<form action="slider/Jssor/image-gallery.source.php" method="get"><br>
<textarea name="selection" id="result" disabled></textarea>
<input type="submit" value="Jssor Imgage Gallery">
</form>

image-gallery.source.php 调用时抛出未定义索引错误:

<?php
echo $_GET["selection"];
?>

新页面的链接工作正常,所以我认为这不可能是因为 action 属性中的路径!?我没有看到 URL 中传输的 ID (?selection=3,4,31),所以我做错了什么?

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com