> > but, this doesn't:
> >
> > function myFunction() {
> >  foreach($_POST as $key=>$value) {
> >
> >      if (empty($$key)) {
> >          print "empty value $key<br>";
> >      }
> >
> >  }
> > }
>
> Since php variable scope is local unless you define it global, that won't
> work that way.  You might try (just guessing here):
>  function myFunction() {
>    foreach($_POST as $key=>$value) {
>        global $$key;
>        if (empty($$key)) {
>           print "empty value $key<br>";
>       }
>    }
>  }

That did it.
I assumed that since $_POST was global, the key/value pair would be. Guess
not :-|

Thanks!

ron


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to