[thelist] undefined php variable
John Corry
john at neoncowboy.com
Wed Jul 30 21:36:04 CDT 2003
This is because your PHP installation is set to it's default error
reporting: error_reporting = E_ALL
E_ALL includes the display of notices...which include notices of such
things as a previously undefined index in an associative array.
A more tyupical PHP error_reporting setting is:
error_reporting = E_ALL & ~E_NOTICE
Or, everything except notices.
You can edit this in you php.ini file.
John
> -----Original Message-----
> From: thelist-bounces at lists.evolt.org
> [mailto:thelist-bounces at lists.evolt.org] On Behalf Of Tom Dell'Aringa
> Sent: Wednesday, July 30, 2003 3:17 PM
> To: thelist at lists.evolt.org
> Subject: [thelist] undefined php variable
>
>
> Hello,
>
> I'm doing this:
> $aDate = $_POST['postdate'];
>
> and getting this:
>
> Notice: Undefined index: postdate in..
>
> Is this because the right setting is not turned on for this
> type of index(I forget the name of it)?
>
> Tom
>
> =====
> http://www.pixelmech.com/ :: Web Development Services
http://www.DMXzone.com/ :: Premium Content Author / JavaScript / Every
Friday! http://www.maccaws.com/ :: Group Leader [Making A Commercial
Case for Adopting Web Standards]
"That's not art, that's just annoying." -- Squidward
--
* * Please support the community that supports you. * *
http://evolt.org/help_support_evolt/
For unsubscribe and other options, including the Tip Harvester
and archives of thelist go to: http://lists.evolt.org
Workers of the Web, evolt !
More information about the thelist
mailing list