且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

检索表单设置的多个值

更新时间:2023-11-20 23:32:46

variable =


_REQUEST [''form_variable''];

我的问题是,什么是检索传递的所有值的Php方式

用于相同的表单变量?


例如,如果使用类似

http:// xxxx / get_variables .php?form_v ... iable = variable

,我如何遍历form_variable已设置为

的所有值?


感谢和问候,

Girish


Girish写道:

>
http://xxxx/get_variables.php?form_v ... iable = variable



以上请求将由php读取,如下所示:


Hi Everyone,

I am passing a form to a php script for further processing.
I am able to retrieve the last value set for that given form variable
using
$variable=$_REQUEST[''form_variable''];
My question is, what is the Php way of retrieving all the values passed
for the same form variable?

For example, if the php script is called with a syntax like

http://xxxx/get_variables.php?form_v...iable=variable
, how do I iterate through all the values that form_variable has been
set to?

Thanks and regards,
Girish

variable=


_REQUEST[''form_variable''];
My question is, what is the Php way of retrieving all the values passed
for the same form variable?

For example, if the php script is called with a syntax like

http://xxxx/get_variables.php?form_v...iable=variable
, how do I iterate through all the values that form_variable has been
set to?

Thanks and regards,
Girish


Girish wrote:
>
http://xxxx/get_variables.php?form_v...iable=variable

Above request will be read by php like this: