检索表单设置的多个值 [英] Retrieving the multiple values set by a form

查看:56
本文介绍了检索表单设置的多个值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我将表单传递给php脚本进行进一步处理。

我能够检索为其设置的最后一个值给定形式变量

使用

$ variable = $ _ REQUEST [''form_variable''];

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

对于相同的表单变量?


例如,如果使用类似
的语法调用php脚本
http://xxxx/get_variables.php ?form_v ... iable = variable

,我如何遍历form_variable已经设置的所有值?

设置为?


谢谢和问候,

Girish

解决方案

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:


这篇关于检索表单设置的多个值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆