|
Posted by nescio on 05/14/06 15:17
hello ,
i have a form but i don't know how many fields there are, sometimes 4 or 10
or whatever.
some text fields have a value from a session variable .
i use a request and sizeof() to get information about the amount/value of
the records.
to get the name/value of the form fields i use:
foreach($_REQUEST as $k => $v)
but there is always, apart form the text fields
- submit and PHPSESSID, these are the 2 last keys of the request array;
my questions are:
- will 'submit' and 'PHPSESSID' always appear in the request array; ?
- if yes: can i then use $amount = sizeof($_REQUEST) - 2; to get the amount
of text fields in the form?
- are 'submit' and PHPSESSID always the last 2 keys of the array ?
thanks,
Navigation:
[Reply to this message]
|