Save JavaScript variables to PHP/MySQL DataBase Securely with Ajax Post

We will show you the way how to save JavaScript variables to a PHP/MySQL DataBase easily and securely. In my demonstration we’ll go through an example in which we want to store an array for my users. The users can be identified by their unique names.

Log in to to your cPanel hosting, find the “MySQL Databases” in the menu and create a new database. Create a user and add it to the database, checking all privileges. We’ll use this user to connect to the DB.

Open phpMyAdmin and you should see the new DB in the list. Select it and make a new table. In my example I’ll call it usertimes.
Set to auto increment (A_I) the primary key and make sure the name field is a unique value. We’ll store the current save date and the rest of the variables depends on your specifications. Save the settings when it’s done. My database is ready to receive input.

JavaScript variables to PHP MySQL DataBase Continue reading “Save JavaScript variables to PHP/MySQL DataBase Securely with Ajax Post”

Top 15 Free and Premium Website Templates

The online world of today places certain demands on modern websites. This is why it is so important to keep an eye on the latest trends and tendencies. Of course, you don’t necessarily need to follow all of them. Your website will be able to stay the course for quite a while, if you already have your feet on the ground. But if you are just starting and don’t have too big audience, who will loyal to you no matter what, you’d better take into consideration at least the most essential aspects. For example, it is very important to choose only responsive website templates for your website not to lose a lion’s share of the audience who uses handheld devices for browsing. User-friendly design with intuitive navigation is also a must. No one likes spending precious time in search of the menu bar. Today we have prepared for you a roundup of 15 free and premium website templates that can become a perfect foundation for any project.

Continue reading “Top 15 Free and Premium Website Templates”

Show a PopUp to Abandoning Visitors

Try to convince your abandoning visitors to stay on your page and turn them into customers with a simple trick: show them a popup asking them to subscribe to a newsletter, to like/share the page, present some hot deals, related articles, ads or anything that might make them convert. In this article I’m sharing with you the very simple JavaScript code to make this working.
I know popups are considered to be annoying, pushy and people hate them but in this case we’re talking about visitors who have already decided to leave your site so you have nothing to lose by nagging them a little.

Live demo

how to solve a Rubik's Cube
Continue reading “Show a PopUp to Abandoning Visitors”

Prevent web crawlers from stealing email addresses from your website

If you just simply publish an email address on a website you can expect tons of spam in the inbox. Web spiders crawl the sites all the time looking to collect email addresses to send them spams, ads or viruses. This is why you have to make sure you never add your email to any website as plain text or link which is visible by robots.

Demo

Show Email
Continue reading “Prevent web crawlers from stealing email addresses from your website”