order information at the end of order

hi,

i need to access the information of the order (total amount) with php, at the order confirmation page (last page of the order where it says thank you for your order etc)



I need this for my affiliate partner



I could do that in the previous version (2.0) but i cannot in the last one (2.1.2)



Any ideas?



thanx