English 中文(简体)
寻找形式名称
原标题:search for name of form field
  • 时间:2012-04-04 00:58:25
  •  标签:
  • php

我需要抓住一个投入领域的名称。

所有这些项目都从<条码>inf_custom_InvitationCode开始,并附有编号。

inf_custom_InvitationCode0

inf_custom_InvitationCode1

等等。 它们可能因形式而有所不同。

我如何寻找这一数据并 gr取数据?

最佳回答

If the fields are named inf_custom_InvitationCode### and you control the source of the data being submitted to your form, you may be better off changing the code that creates the client-side form to name the input fields inf_custom_InvitationCode[] (all of them can use that same name). If you do this, PHP will take all the input values and add them as a single key to the $_REQUEST (and $_GET or $_POST)) array, which you can then use as you would any array.

否则,PHP Manual含有与你想要使用的东西相似的东西。

问题回答

暂无回答




相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签