RE: [PHP] Problem with postfield elements

From: Date: Thu, 13 Jun 2002 08:06:59 +0000
Subject: RE: [PHP] Problem with postfield elements
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-101916@lists.php.net to get a copy of this message
Hi Justin , Thankyou. They made this change in php 4.2.1 only?? But I never faced this problem previously with php3, php 4.0.1. Is it like that? Thanks and Regards Balaji -----Original Message----- From: Justin French [mailto:justin@indent.com.au] Sent: Thursday, June 13, 2002 12:44 PM To: Balaji Ankem Subject: Re: [PHP] Problem with postfield elements on 13/06/02 4:50 PM, Balaji Ankem (balaji.ankem@wipro.com) wrote: > Every time I have to refer like this $_POST['emp_id']. Can't I refer > as $emp_id ? Yes, partly. 1. you can always turn register globals back ON, but there is a reason (security) why they are now off by default. In short, if you know WHERE the var is coming from (eg POST), things should be more secure. (eg, if I can do something like foo.php?is_user=yes on your URL, it might have bad consequences, but if you ONLY trust a $_COOKIE['is_user'], then the script is already more secure. 2. at the top of the script, you can put in $emp_id = $_POST['emp_id']; Regards, Justin French

**************************Disclaimer************************************ Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in the E-MAIL in any manner whatsoever is strictly prohibited. ***************************************************************************
« previous php.general (#101916) next »