Hi all,
I was wondering if it is a common thing to do when requesting variables to have the request names in an array and use a for loop to request the submitted variables. (will it hold the values if its a for loop?)
What i have at present is this:
$mobile_phone = $_REQUEST['mobile_phone'] ;
$mobile_phone = mysql_real_escape_string($mobile_phone);
$work_phone = $_REQUEST['work_phone'] ;
$work_phone = mysql_real_escape_string($work_phone);
$home_phone = $_REQUEST['home_phone'] ;
$home_phone = mysql_real_escape_string($home_phone);
$email_address = $_REQUEST['email_address'] ;
$email_address = mysql_real_escape_string($email_address);
$time = $_REQUEST['time'] ;
$time = mysql_real_escape_string($time);
and about ten other requests being made too by the way.
if i run it through an array and use a for loop request the variables, will it hold the values in the request to be used elsewhere in the script?