|
Posted by none on 06/29/07 19:56
Reggie wrote:
> On 29 Jun, 12:54, none <""arjen\"@(none)"> wrote:
>> Reggie wrote:
>>> Parse error: syntax error, unexpected '=' in /home/fhlinux169/c/
>>> clashoff.co.uk/user/htdocs/create_entry.php on line 8
>>> Hi i seem to be getting this error message please help.
>>> This is the code am useing:
>>> <?php
>>> if ($submit = = "Register")
>> try ==
>> and don use globals (google)
>
> hi do you mean i should switch off my global?
>
Yup, there are some disadavantages. Fiorst of all it's a huge secuirity
risk (yourpage.com/index.php?user=admin). Second it will not work on all
servers so you have to rewrite your code if you move. Third it's harder
to read for example $_POST['id'] will tell me more then $id
Arjen
Navigation:
[Reply to this message]
|