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
[Back to original message]
|