gpt4 book ai didi

javascript - php && mysql关于Post方法

转载 作者:行者123 更新时间:2023-11-28 23:12:34 26 4
gpt4 key购买 nike

<分区>

我通过两个不同的按钮将数据提交到 post[submit] 和 post[request]。

我将 user_id 提交到 post[submit] 但我无法在请求部分(post[request])中回显 user_id

/* 传递两种不同形式的数据*/

if(isset($_POST['submit']) || isset($_POST['request']) ){            
if(isset($_POST['submit'])){
echo "submit working ";
$user_id= $_POST['user_id'];
echo $user_id; /* this id passed from submit form*/
}
else{
echo "Request Portion Working";
echo $user_id; /*this line gives the error*/
}
}

I submit the data to post[submit] and post[request] from two different buttons.
I submitted user_id to post[submit] but i am unable to echo the user_id in request portion (post[request])

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