Posted by Jeff Gaines on 10/23/07 15:51
I have down-loaded several php scripts and am working my way through them
as part of my learning process. I have noticed situations like this:
mysql_query("DELETE FROM $table WHERE id=$id",$db);
where scripts have been called from another script/page with a parameter -
i.e. 'id' is a parameter that is not defined in the script before the
above line is called.
They don't work as they are but I can get the parameters by using
$_GET['id'] or sometimes $_POST['id'].
Is this a result of different versions of php (I am using v5) where
behaviour has changed or is it something else that is going completely
over my head because I am so new to this?
Many thanks.
--
Jeff Gaines Damerham Hampshire UK
It may be that your sole purpose in life is to serve as a warning to others.
Navigation:
[Reply to this message]
|