Its my first time using array_walk to go thru a list of variables to test for any interjection... the question I have is: is there a function/method to have a dynamic variable set to a variable.... see ******
I want to have it loop thru all and set them back to their original names but check for strip slashes.
the values come from a form, I removed a $ in front of them to try and get php to load them dynamically from an array... plz help so lost :-/
any insight is kindly appreciated.
//check values for interjection and errors
$valuestocheck = array('key', 'signSize', 'numberOfSides', 'numberOfColors', 'materialType',
'halftone', 'doublesided', 'yellowbg', 'quantityOfSigns', 'quantityOfStakes', 'signsPrice',
'stakesPrice', 'shipPrice', 'totalPrice', 'shippingFullname', 'shippingAddy1', 'shippingAddy2',
'shippingCity', 'shippingState', 'shippingCountry', 'shippingPostalCode', 'shippingPhone', 'email', 'personalFullname',
'personalAddy1', 'personalAddy2', 'personalCity', 'personalState', 'personalPostalCode', 'personalCountry', 'personalPhone',
'cardType', 'designid', 'uploadedFile', 'comment', 'date');
function checkValues ($name){
$name = stripslashes($_GET['$name']);
};
array_walk($valuestocheck, 'checkValues');