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

Posted by Rik on 05/14/06 15:36

nescio wrote:
> my questions are:
> - will 'submit' and 'PHPSESSID' always appear in the request array; ?

Onky if:
a) "submit" is clicked.
b) you set PHPSESSID yourself

> - if yes: can i then use $amount = sizeof($_REQUEST) - 2; to get the
> amount of text fields in the form?

Nope, highly unreliable

> - are 'submit' and PHPSESSID always the last 2 keys of the array ?

No.

If you have multiple textarea's, you might consider naming them like
name="multiple[]".
print_r($_REQUEST) to see how this is of use to you

Grtz,
--
Rik Wasmus

 

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

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