Login   Register  
PHP Classes
elePHPant
Icontem

Input names array

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Form Spam Bot Blocker  >  All threads  >  Input names array  >  (Un) Subscribe thread alerts  
Subject:Input names array
Summary:Array of generated input names - userID/IP
Messages:2
Author:Form Class
Date:2007-05-02 18:17:20
Update:2008-05-26 08:14:29
 

  1. Input names array   Reply  
Picture of Form Class
Form Class
2007-05-02 18:17:20
I'm wondering if there is a way to get the names of all the inputs generated by the class as an array, too - in addition to getting them as a string. For instance, the class generates these inputs as a string:

<input type="hidden" name="fsbb_key" value="68.13.7.19.18.16.354.16.40.14.575.18" />
<input type="hidden" name="f9b0944a8480d93e238" value="0944a8480d93e238" />
<input type="hidden" name="dca5791016952859af" value="MTE3ODExODgxNw==" />
<span style="display:none;visibility:hidden;">
<label for="mail">Do not enter anything in this field!</label>
<input type="text" name="mail" id="mail" value="" />
</span>


I also want to extract an array of the above input names, like so:


Array
(
0 => "fsbb_key",
1 => "f9b0944a8480d93e238",
2 => "dca5791016952859af",
3 => "mail"
)


Perhaps, store the name of the input that is generated in each method in a class-array-var and then offer a getInputs() methods that returns those class array-var as an array like above?

On another note, I heard some ISPs such as AOL use dynamic IP in a different way:

http://shiflett.org/articles/the-truth-about-sessions
A single user can potentially use a different IP address for each request (as is the case with large ISPs such as AOL), and multiple users can potentially use the same IP address (as is the case in many computer labs using an HTTP proxy). These situations can cause a single user to appear to be many, or many users to appear to be one. For any reliable and secure method of providing state, only information obtained from HTTP can be used.

So, how is that going to work with the userID input you generate through the FSBB class using the user's IP?


TIA

  2. Re: Input names array   Reply  
Picture of David K. Lynn
David K. Lynn
2008-05-26 08:14:29 - In reply to message 1 from Form Class
FC,

It appears that the creator has already done that in the action.php script on line 23 (<?php print_r ($blocker->getTagNames()); ?>). You can get the values from the $_POST array.

Regards,

DK