Afficher un message
Vieux 17/09/2007, 01h20   #19
Chuck Anderson
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: no empty form fields after submitting form

pepper.gabriela@gmail.com wrote:
> Little problem in page A, now:
>
> I imagine I must verify if I have 'something' in $_POST
> (I get an Undefined Variable notice when I directly write:
>
> if($_POST[$k]!=''){
> ${$k}=$v;
> }
>
> and I access this page for the first time, that is when for sure there
> is nothing in $_POST
> )
>
> I tried
> if(array_key_exists(etc. but this way I must write code for any
> possible key...
>
> Is there a handy way to know if there is 'something' in $_POST?
>
> Thanks!
>


Sounds like you've got a handle on it.

--
*****************************
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
The world is my country,
Science, my religion. ... Huygens
*****************************
  Réponse avec citation
 
Page generated in 0,04822 seconds with 9 queries