you would need to add the text field to the cart page and then save it to a session variable. It would be almost identical to adding the coupon code element as outlined in the "Creating a Coupon system for your eCart store" tutorial:
ecart_coupons_sr.pdf
follow the steps for creating the form and adding the session variable.
once set, the session variable will be available for you to use on the confirm page.