Creating Simple Form using PHP and MySql
HTML forms are an essential part of the web development process, allowing us to gather data from user inputs. We can use this data to send emails, change interfaces, layouts, or save it directly to a MySQL table.
Today, we will create a simple HTML form to collect a user’s name, email, and message text, and use PHP to save the collected data into a MySQL database table. This is a common scenario in web development where we often need to store user data.
Shorten URLs using Bit.ly API (PHP)
Here’s PHP function that comes in handy when you want to shorten long URLs into short Bit.ly URLs, before sharing it to Twitter or other Social networks. First you need to create Bit.ly OAuth application here, when you create an application you will be able to generate “Generic Access Token” under this application to make API requests on behalf of your own account.
Multiple Items PHP Shopping Cart to PayPal
In the previous post, we had created a simple PHP session based shopping cart, now in this article we will integrating this shopping cart with our PayPal express checkout system. Main idea is to let users buy multiple items using PayPal, shopping cart collects the items users want to buy and then they’ll be able to pay for multiple items using their PayPal account.
Creating Simple Shopping Cart with PHP
Shopping Cart is very important part of any online store, it not only allows user to accumulate list of items for final purchase, but also calculates total amount of all the products. Since my last article on PayPal Express Checkout with PHP, I have received few emails asking how to create a simple PHP session based shopping cart for the website. So, keeping that in mind, today we are going to create a shopping cart, which is simple and can be integrated easily in any website that runs on PHP.