First thing...I am building this page in ColdFusion. So the php info will not help.
As for the orderid...here is the line of code from the checkout_success.cfm page...
<h2>Order Receipt</h2><h3 class="eCart_OrderHeaderInfo">Order number: #Session.resumeCart_OrderID#</h3>
resumecart is the name of my eCart object.