You are here: form - request question « All PHP « IT news, forums, messages
form - request question

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация