First check to see if the form is being submitted. If it is, then redirect to 2checkout.com with the entered value, and if not, then just print the form:
<?php
if ($submit) {
header("Location: https://www.2checkout.com/cgi-bin/sbuyers/cartpurchase.2c?sid=16076&cart_order_id=001705&total=$user_total");
}
else {
// print the form
}
?>
Be sure to call the form page as the form action.