| Article: |
Three-Tier Development with PHP 5 | |
| Subject: | use _POST for x, y, z | |
| Date: | 2004-12-15 10:50:59 | |
| From: | yasheshb | |
|
in the file save.php use _POST to reference the form variables. using $x, $y, $z did not work for me.
|
||
Showing messages 1 through 3 of 3.
-
use _POST for x, y, z
2004-12-15 15:41:08 lycruzc [View]
-
use _POST for x, y, z
2005-03-14 12:08:48 eriksays [View]
no no no no.
register_globals = ON is a SERIOUS SECURITY VIOLATION that can allow a user to hijack the session data with their own variables.
keep register_globals = OFF and just use $_POST or $_GET to grab your form variables.
-
use .htaccess for x, y, z
2006-06-09 02:56:40 goa103 [View]
I second your remark but for this article it's possible to avoid modifying a single line of code by using a simple .htaccess file with the following lines in it :
php_flag magic_quotes_gpc off
php_flag register_globals on



register_globals=OFF => register_globals= ON
This variable this in the file of configuration of PHP (php.ini).