I’m having an issue with finding some way of accepting the data below, and being able to parse it as arrays, etc. in PHP or Python.
$data = array(
'full_name' => array('name'=>'Full Name', 'type'=>'textarea'),
'company' => array('name'=>'Organization', 'required'=>true),
}
There are many more fields in that inner array and there isn’t a set order as to how they appear.
Is there any way for me to parse a users input from a textarea and be able to use it as the array that it is? Or any other ideas on what to do with it?
What about using JSON as an input format? That could be parsed easily, and wouldn’t be a security risk.