I need a PHP script written that should have 3 functions.
Function 1:
Given a username and password, it will log into the existing Amazon.com user account.
Function 2:
Given a URL at Amazon.com, it will retrieve the page, verify that it is still logged in and then click the “Buy now with 1-Click” button. See this: http://goo.gl/7CvbC
It should wait to receive the confirmation page that the item has been purchased. It will look something like this: http://goo.gl/2JAo6
If it gets an…