Re: $_POST value is set but always = null even if you enter something
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: $_POST value is set but always = null even if you enter something

From: comp.lang.php <phillip.s.powell@gmail.com>
Date: Mon Mar 20 2006 - 22:59:19 CET

Janwillem Borleffs wrote:
> comp.lang.php wrote:
> > I verified via both var_dump() and print_r() that
> > $_POST['hasReviewedApplicant'] = 1 and that
> > $_POST['school_type_other'] = null, even when you enter something
> > into the text field, it's still null!
> >
>
> You need to specify the type of the element (type="text").
>
>
> JW

I did just that.. school_type_other is type="text", which in HTML is
never a requirement, in fact, before I tried that none of the other
HTML form element text field tags have type="text" and work just fine.
I added type="text", still no $_POST['school_type_other'] even though I
entered it!

Phil
Received on Mon May 1 02:36:55 2006