How to retrive Custom Fields as Values for a Form field

When generating the form all you need is the post id of the product pages and you can use get_post_meta function to retive the information about that product , so basically you just need to pass the product post id. eg:

$price = get_post_meta($product_post_id,'price',true);