Skip to main content

Simple Love Calculator

If your looking for a Simple Web Application for entertainment I have here a Simple Love Calculator using PHP and Javascript. This application has a two inputs of a name for the male and female. Every letter or name that the user encode the application will automatically calculate the percentage of love with that two names that the user encode. The calculation of the percentage is driven by the javascript to show how much percentage that the two name will be each other or not. See the example code below.

Sample Code

Calculator.php - this code is for the calculation of love and convert to percentage. 2) { $lettermitte = ceil($letter / 2); for ($i=0; $i resultIndex.php - This is for the HTML form and for the rest of javascript code to catch or fetch the data through the calculation.php Simple Love Calculator

Love Calculator


Hope that you learn in my tutorial. Don't forget to LIKE & SHARE this website. Enjoy Coding.

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.


1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

Submitted byRahul123456789… (not verified)on Thu, 10/26/2017 - 03:13

Sir/Mam,It worked fine for me...thanks a lot.
But do you have any video which will explain me these codes.?

Add new comment

This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.