global variables in functions

From: Date: Thu, 16 Aug 2001 15:52:42 +0000
Subject: global variables in functions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-63047@lists.php.net to get a copy of this message
Hi, I have a function like so function updateForm() { global $link; $query = "UPDATE badgers SET lname = '$lname', fname = '$fname' WHERE ID = '$ID'"; mysql_query( $query, $link ); } is there a simple way to access the global form values without working out which method was used and then using the global keyword on the HTTP_POST_VARS / HTTP_GET_VARS?? Regards Tom Hodder

« previous php.general (#63047) next »