--- Gordon Stewart <[EMAIL PROTECTED]> wrote: > I'm wondering, Is it possible to only have the item "code" in the > HTML, & then use PHP to access a MYSQL database - & obtain the price / > Shipping costs (& other things).... - & forward the details via POST > method, to Paypal ? > > Q1 ) Is the above possible ? (& a website tutorial on this - If poss ?)
Yes, it is possible and recommended. If the items are sitting in an HTML form (hidden or not) the values can easily be manipulated by a bad guy. I had one client who came to me years ago because someone had placed an order that short changed him for electronic delivery of a PDF. > Q2) Is it possible to access MYSQL & then send a FORM detail etc to > Paypal using the POST method ? Yes, PayPal wants data to come via POST and this can be done via your program. There are programming classes which are used to transmit the POST data. The most commonly-used one is cURL. This is a PayPal site with some details on communicating with them: https://www.paypal.com/IntegrationCenter/ic_standard_home.html You may want to look at IPN (Instant Payment Notification). It's a bit more work but gives the site a professional behavior that you can ask for payment and receive it without a human looking at the PayPal account. You can notify the visitor that the payment has been received. Some people have written systems to do the work for you on this. James
