Post values via cron script<

admin

Administrator
Staff member
I am trying to write a script that would run via cron nightly and ran into a snag. I am selling an online service (a online family album) when people signup they have to give their credit card info and then it gives them a 15 day free demo, if they don't cancel after the 15 days my system bills their credit card for the next year of service.

When they signup I do what is called an AUTH_ONLY to just authorize the credit card and then take the auth number and etc. and put it into a mysql database.

What my problem is is when my script runs every night it has to post the information to authorize.net I can't just pass it via the url. Any time I need to post something I have a submit button. Is there a way in php to have the information from my php cron script post to authorize.net?

Thanks.the cron script will only run a php script. there for you have to push a button. but if it is just a button then you can have javascript submit it for you.
something like this

<!-- m --><a class="postlink" href="http://www.htmlforums.com/showthread.php?s=&threadid=29445Oh">http://www.htmlforums.com/showthread.ph ... id=29445Oh</a><!-- m --> and don't forget about cURL..

<!-- m --><a class="postlink" href="http://www.php.net/manual/en/ref.curl.php">http://www.php.net/manual/en/ref.curl.php</a><!-- m -->
<!-- m --><a class="postlink" href="http://curl.haxx.se/">http://curl.haxx.se/</a><!-- m -->

It can 'fake' post data. But more than that I can't say, since I've never used it myself, but I'm reasonably sure it can do what you require.
 
Back
Top