Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id C8A69475FB8 for ; Mon, 27 Jan 2003 12:06:08 -0500 (EST) Received: from smtp.wanadoo.es (unknown [62.37.236.138]) by postgresql.org (Postfix) with ESMTP id 8D463475C22 for ; Mon, 27 Jan 2003 12:06:07 -0500 (EST) Received: from there ([80.103.153.143]) by smtp.wanadoo.es (8.12.6/8.12.6) with SMTP id h0RH82M0032164 for ; Mon, 27 Jan 2003 18:08:03 +0100 Message-Id: <200301271708.h0RH82M0032164@smtp.wanadoo.es> Content-Type: text/plain; charset="iso-8859-1" From: Jesus Rios To: "POSTGRESLQ-PHP" Subject: checking a form Date: Mon, 27 Jan 2003 18:07:48 +0100 X-Mailer: KMail [version 1.3.2] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/74 X-Sequence-Number: 1819 Hi everybody. First be patiently with my English.I am from Galiza country. I am a new php-postgresql user. I am making a form. After submit this form, it will take us to an archive.php. Firts i would do is to check if every form'elements are not-white.It is, if everyone have been selected. I was tryng so using $HTTP_POST_VARS) and cheking if every slots where not -white. $comprova_form=comprovaformulario($HTTP_POST_VARS) function comprovaformulario($var) { $num=count($var); for ($i=1;$i<$num;$i++) { if (empty($var[$i])) { return false; } } } But it is wrong for example in the case of a checkbox: it does not must be on all off then. How can i do this???. Thank you.