开发者

Sending Variables in Post

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜