I need a php script to be run on my windows server on my website. First off it takes in customer's name, email and PayPal email address. It then sends out two emails to my PC, giving the opt-in details. I already have a script which does this, but it needs a few lines editing slightly. The script will increment a booknumber counter (which will be stored as a variable on the website, (it will be initialised as 1000) and this number will be included into the two emails. It then displays a thankyou page to the customer. I will write this in html. Next it will store the data in a small database on the website, using the new book number as the reference. Next it will invoke a Paypal call, to take the payment from the customer, who will be buying a customised ebook as a pdf file. The Seller's PayPal address to use will be found in the database. On return from PayPal it must confirm the payment was correct or if it fails, take the customer to a try again page, which I will write in HTML. Next the script will take a master txt file (on the website) and perform two simple find & replace functions, creating a new txt file for the particular customer. The new txt file will be run through a text to pdf converter, which I have here, to go onto the website. This will be the new ebook just for the customer and the pdf file will be stored in the database, again referenced by the book number. the pdf file will be stored on the website and given a unique name, formed from the book number. The customer will be sent a thank you email, giving him the download details for his ebook pdf [login to view URL] concludes the transaction and ends the script. I will also need a simple enquiry program to access the database by book number or customer name or email address and display all the details on the screen.
## Deliverables
For security purposes I will retain the website access details so the programmer will have to send the modules to me first, so I put them onto my PC and then I will upload them to the website, ready for use.