I want to create an array of Values taken from the DB and pass them into a Form. I have a set of functions that calculate and fetch results:
$uid = $current_user->ID;
$user_email = $current_user->user_email;
$oid = $_GET['oid'];
$order_total = walleto_get_total_for_order($oid);
All functions have been tested and work well.
------- This is the a request for solution after tests on the question from here - not resolved ----------
Creating an array is quite simple :
$myarray = array() ;
$myarray['uid'] = $current_user->ID;
$myarray['user_email'] = $current_user->user_email;
$myarray['oid'] = $_GET['oid'];
$myarray['order_total'] = walleto_get_total_for_order($oid);
Then you don't "paste" the values into a form, you set them as values and they will be sent when the user click on the submit button