Posted by Richard Levasseur on 06/11/06 22:21
Gordon's thought is the same as mine. The only reason I can see it
raising a notice is if it is accessing the index when no data was
post/get'ed to the web page, which would be the case when the form
first appears. Simply use one of the previous replies which suggests
using isset().
Gordon Burditt wrote:
> >Here is the entire mess of code.. You tell me why the notice is thrown
> >if you can, otherwise shut the fuck up.
>
> I tried setting this up on my server. When I browse to the
> directory it's set up in, I get the undefined index notice
> *BEFORE* the form appears (and I don't submit the form at all).
>
> Unless I am invoking it incorrectly (is index.php supposed to be
> called from ANOTHER form?) you're not taking into account that
> config.inc.php is called just to throw up the form as well as
> for submitting it.
>
> I also get database errors because your queries don't work too
> well on an empty database I pointed the page at. I don't need
> your tables to reproduce the problem.
>
> Gordon L. Burditt
[Back to original message]
|