gpt4 book ai didi

post - post 方法中的未定义索引

转载 作者:行者123 更新时间:2023-12-02 22:29:30 26 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
PHP: “Notice: Undefined variable” and “Notice: Undefined index”

我正在学习PHP,我使用post方法提交表单数据,我不知道为什么会出现这两个错误:

Notice: Undefined index: search_for in \xampp\htdocs\samir\indexes.php on line 5

Notice: Undefined index: replace_with in \xampp\htdocs\samir\indexes.php on line 6

if(isset($_POST['user_input']) && isset($_POST['search_for']) && isset($_POST['replace_with']) 
&& !empty($_POST['user_input']) && !empty($_POST['search_for']) && !empty($_POST['replace_with']))
echo $user_input = $_POST['user_input'];
echo $search_for = $_POST['search_for'];
echo $replace_with = $_POST['replace_with'];

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