php security
php security
- Started
- Last post
- 2 Responses
- tomkat
now..
is this better than just using the post vars as $var?
if (isset($HTTP_POST_VARS)) {
foreach ($HTTP_POST_VARS as $k => $v) {
$ = $v;
}
}or is there an even better way?
- unfittoprint0
4.3 and upper update:
foreach ($_POST as $key => $value) {
$$key = $value;
}
- Mimio0
You could set those as session variables or you can pass and receive each one through explicit POST containers. Both methods are more secure.
You send the variables in hidden forms elements
and receive them on the next page using this:
$yourVar = $_POST['yourVar'];