Reply to Re: Newbie

Your name:

Reply:


Posted by Andrew Hutchings on 06/29/07 16:28

ZeldorBlat wrote:
> On Jun 29, 11:15 am, Reggie <joelregisfo...@hotmail.com> wrote:
>> Notice: Undefined variable: submit in /home/fhlinux169/c/
>> clashoff.co.uk/user/htdocs/create_entry.php on line 7
>> not registered

> You get the error because $submit is not defined. You need to use
> $_POST['submit'] (and probably $_POST['username'] and
> $_POST['password'] as well).
>
> Read this:
>
> <http://www.php.net/manual/en/language.variables.predefined.php>
>
> And pay special attention to the notes about register_globals.
>

It should also be noted that Notices are not Errors as such. Your
script will normally execute fine with Notices but for improved security
and performance you should try to avoid them.

--
Andrew Hutchings - LinuxJedi - http://www.linuxjedi.co.uk/
Windows is the path to the darkside...Windows leads to Blue Screen. Blue
Screen leads to downtime. Downtime leads to suffering...I sense much
Windows in you...

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация