From: | Jesus Rios <galiza-vermelha(at)wanadoo(dot)es> |
---|---|
To: | "POSTGRESLQ-PHP" <pgsql-php(at)postgresql(dot)org> |
Subject: | checking a form |
Date: | 2003-01-27 17:07:48 |
Message-ID: | 200301271708.h0RH82M0032164@smtp.wanadoo.es |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-php |
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.
From | Date | Subject | |
---|---|---|---|
Next Message | Christopher Kings-Lynne | 2003-01-28 01:11:31 | Re: Probleme with Postgresql and phpPgAdmin on a Debian Linux |
Previous Message | Andrei Verovski (aka MacGuru) | 2003-01-27 15:56:03 | Re: Probleme with Postgresql and phpPgAdmin on a Debian Linux |