wkilc Posted August 22, 2010 Share Posted August 22, 2010 Hi all, I'm using a gateway for CC, when they payment is made and then users are redirected back to my site, I grab the order number and echo it as $info so I can display on the user's receipt. <?php $info=$_POST['OrderNo']; echo "$info"; ?> Is it possible to use PHP to either to automatically (onload) submit a form or somehow write $info to a text file so I can reconcile the books later? I can do the former successfully with JavaScript... but I'd rather make it server-side. Thanks. Link to comment https://forums.phpfreaks.com/topic/211446-submit-form-or-write-to-file-onload/ Share on other sites More sharing options...
litebearer Posted August 22, 2010 Share Posted August 22, 2010 http://www.tizag.com/phpT/filewrite.php Link to comment https://forums.phpfreaks.com/topic/211446-submit-form-or-write-to-file-onload/#findComment-1102477 Share on other sites More sharing options...
wkilc Posted August 22, 2010 Author Share Posted August 22, 2010 Perfect. Thank you! Link to comment https://forums.phpfreaks.com/topic/211446-submit-form-or-write-to-file-onload/#findComment-1102514 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.