gravity forms php add POST data right at submit code example
Example 1: how to get all post fields in wordpress
echo '<pre>';
print_r(get_post_custom($post_id));
echo '</pre>';
Example 2: create a form and submit it dynamically jquery
$(function() {
$('<form action="form2.html"></form>').appendTo('body').submit().remove();
});