开发者

Sending Variables in Post

开发者 https://www.devze.com 2023-01-01 15:49 出处:网络
I want to send only one variable via the post method. I have queried the database and have to post $row[id] variable to the page along with the form. To send the user\'s input w开发者_JAVA技巧e simply

I want to send only one variable via the post method. I have queried the database and have to post $row[id] variable to the page along with the form. To send the user's input w开发者_JAVA技巧e simply do dfs. and the value is send. But, how can i send the variable $row[id] to the file. And also, how would I access it?


Not sure if I understand your question correct, but you could try to use hidden input to store your variable:

<input type="hidden" name="whatever_name" value="whatever_value" />

You can access it on PHP side the same as any other $_POST field.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号