The code below putting the values in array but when I call this array to display the value after the completion of the form, it was result nothing.
Please help me and advice. I am a newbie with this environment.
Thanks in advance
Code: Select all
<?
session_start();
$arval = array();
require_once("../include/session.php");
reset ($_POST);
while(list($key, $val) = each ($_POST))
{
if ($val == "")
$val = "NULL";
$arVals[$key] = (get_magic_quotes_gpc()) ? $val : addslashes($val);
}
?>Code: Select all
$arVals = array("monthdatebenifit"=>"", "daydatebenifit"=>"", "yeardatebenifit"=>"");