I am new to Chronoforms and struggling to understand how to populate a dropdown with an array from a mysql query using the php action.
For now - I am just trying to understand the basics - so let's start with this:
PHP ACTION (php_11)
$cars = array("Volvo", "BMW", "Toyota");$age=array("Peter"=>"35","Ben"=>"37","Joe"=>"43");return $age;
Dropdown Field:
Set with Dynamic Options. I am using {var:php_11} .
I am not getting anything to show up. Can I please get some assistance? I have also tried $cars - nothing is populating the dropdown.
For now - I am just trying to understand the basics - so let's start with this:
PHP ACTION (php_11)
$cars = array("Volvo", "BMW", "Toyota");$age=array("Peter"=>"35","Ben"=>"37","Joe"=>"43");return $age;
Dropdown Field:
Set with Dynamic Options. I am using {var:php_11} .
I am not getting anything to show up. Can I please get some assistance? I have also tried $cars - nothing is populating the dropdown.