You are here: Re: problems with form « PHP Programming Language « IT news, forums, messages
Re: problems with form

Posted by Neil Jones on 05/22/06 22:44

mattyfroese@gmail.com wrote:

> The variable $submitm is were you are going wrong.
>
> if you replace it with $_POST['submitm'] then I am pretty sure your
> script will execute as expected.
>
> Reason: There is a definition in your php.ini file that is called
> 'register_globals'. If it is off variables submitted by forms or by the
> URL itself (index.php?get=variable) will not be accessabile by using a
> simple variable. You will need to first reference the array that they
> are in:
>
> $_POST for post variables and,
> $_GET for get :)
>
> This is disabled by default (I believe) for security reasons.

Thanks. I was really puzzled by this as this set up had always worked on
servers for me. I just copied an existing file. I thought it must be
something related to the actual environment but sometimes you just can't
see errors.

Thanks for the rapid reply too.


--
Neil Jones
neil@nwjones.demon.co.uk

 

Navigation:

[Reply to this 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

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