Blog

Sample Calculator Program

An HTML form is shown in the following example code to display the calculator program:

<form method="post" action="">
        <div class="row row-cols-1 row-cols-sm-2 row-cols-md-2 row-cols-lg-2 row-cols-xl-2 justify-content-center">
                <div class="col text-center mb-3 mb-md-5">
                        <label for="Operand1" class="form-label fs-3">First Number</label>
                        <input id="Operand1" name="Operand1" type="number" step="any" class="form-control form-control-custom" value="<?php echo isset($Operand1)?$Operand1:''; ?>">
                </div>
                <div class="col text-center mb-3 mb-md-4">
                        <label for="Operand2" class="form-label fs-3">Second Number</label>
                        <input id="Operand2" name="Operand2" type="number" step="any" class="form-control form-control-custom" value="<?php echo isset($Operand2)?$Operand2:''; ?>">
                </div>
        </div>
        <div class="row justify-content-center mb-3">
                <div class="col-auto">
                        <input class="btn btn-success fs-2" type="submit" name="Calculate" value="+">
                        <input class="btn btn-success fs-2" type="submit" name="Calculate" value="-">
                        <input class="btn btn-success fs-2" type="submit" name="Calculate" value="x">
                        <input class="btn btn-success fs-2" type="submit" name="Calculate" value="/">
                </div>
        </div>
</form>

<?php if(isset($Result) && is_numeric($Result)){?><!-- Display Result -->
<div class="row justify-content-center">
        <div class="col text-center">
                <label for="Result" class="fs-4">Result</label>
                <input id="Result" name="Result" type="number" step="any" class="form-control form-control-custom" value="<?php echo $Result; ?>">
        </div>
</div>
<?php } if(isset($Error)){?><!-- Display Error Messages -->
<div class="row justify-content-center">
        <div class="col">
                <div class="alert alert-danger shadow-sm" role="alert">Error: <?php echo $Error; ?></div>
        </div>
</div>
<?php } ?>

Output:

Download Code

Once the form is submitted, the PHP $_POST super global variable receives all input values. After that, it validates the input and displays it if an error occurs. Then, comparison and arithmetic operators within the conditional statements are used to calculate the expected value.

PHP Code:

<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
    $Operand1=$_POST['Operand1'];
    $Operand2=$_POST['Operand2'];
    $Operator=$_POST['Calculate'];

    /*Validation begins from here.*/
    if($Operand1 == '' || $Operand2 == ''){
        $Error = "The input values are required.";
    }
    elseif (filter_var($Operand1, FILTER_VALIDATE_FLOAT) === false || filter_var($Operand2, FILTER_VALIDATE_FLOAT) === false) {
        $Error = "The input value must be a number only.";
    }
    elseif($Operator=="/" && ($Operand1 == 0 || $Operand2 == 0)){
        $Error = "Cannot divide by zero.";
    }
    else{
        /*Calculation begins from here.*/
        if($Operator=="+")
            $Result=$Operand1+$Operand2;
        else if($Operator=="-")
            $Result=$Operand1-$Operand2;
        else if($Operator=="x")
            $Result=$Operand1*$Operand2;
        else if($Operator=="/")
            $Result=$Operand1/$Operand2;
    }
} ?>
PHP Age Calculator Program code

PHP Age calculator program demo code

<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
    $DOB = $_POST['DOB'];
    $ToDate = $_POST['ToDate'];
    if (empty($DOB) || empty($ToDate)) {
        $Error = "Both input values are required.";
    } else {
        $bday = date_create_from_format('Y-m-d', $DOB);
        $today = date_create_from_format('Y-m-d', $ToDate);
        if (!$bday || !$today) {
            $Error = "Both input values must be a valid date.";
        } else {
            $DOB = $bday->format('d F Y');
            $ToDate = $today->format('d F Y');
            $age = date_diff(date_create($DOB), date_create($ToDate));
            $Result = "Birth Date: <strong>$DOB</strong><br>";
            $Result .= "Age <strong>{$age->y} Years, {$age->m} Months, {$age->d} Days</strong> as on <strong>{$ToDate}</strong>";
        }
    }
}
?>

Output:

Code Download
Marquee Tag

Here’s are some example of how to use <marquee> tag in HTML:

Scroll Up

Example:

<marquee width="60%" direction="up" height="100px">
This is a sample scrolling text that has scrolls in the upper direction.
</marquee>

Output:

This is a sample scrolling text that has scrolls in the upper direction.

Scroll Down

Example:

<marquee width="60%" direction="down" height="100px">
This is a sample scrolling text that has scrolls texts to down.
</marquee>

Output:

This is a sample scrolling text that has scrolls texts to down.

Scroll Left to Right

Example:

<marquee width="60%" direction="right" height="100px">
This is a sample scrolling text that has scrolls texts to right.
</marquee>

Output:

This is a sample scrolling text that has scrolls texts to right.

Scroll Right to Left

Example:

<marquee width="60%" direction="left" height="100px">
This is a sample scrolling text that has scrolls texts to left.
</marquee>

Output:

This is a sample scrolling text that has scrolls texts to left.

Scrolling Speed

Marquee speed can be changed using the “scrollmount” attribute. For example, if you are using scrollmount="1" then it sets the marque to scroll very slowly, and as you increase the “scrollmount,” the scrolling speed will also increase.

Example:

<marquee behavior="scroll" direction="up" scrollamount="1">Slow Scrolling</marquee>
<marquee behavior="scroll" direction="right" scrollamount="12">Little Fast Scrolling</marquee>
<marquee behavior="scroll" direction="left" scrollamount="20">Fast Scrolling</marquee>
<marquee behavior="scroll" direction="right" scrollamount="50">Very Fast Scrolling</marquee>

Output:

Slow Scrolling Little Fast Scrolling Fast Scrolling Very Fast Scrolling

Blinking Text within Marquee

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>

    <head>
        <title>Example of a blinking text using CSS within a marquee</title>
        <style>
            .blink {
                animation: blinker 1.5s linear infinite;
                color: red;
                font-family: sans-serif;
            }
            @keyframes blinker {
                50% {
                    opacity: 0;
                }
            }
        </style>
    </head>

    <body>
        <marquee class="blink">This is an example of blinking text using CSS within a marquee.</marquee>
    </body>

</html>

This is an example of blinking text using CSS within a marquee.

Output:

Example of a blinking text using CSS within a marquee This is an example of blinking text using CSS within a marquee. This is an example of blinking text using CSS within a marquee.
UPI Payment Button Generator
<a href="upi://pay?pa=9002325970@ybl&pn=MAHABUL ALAM&cu=INR" id="__UPI_BUTTON__" style="background: #ff912f;border: 2px solid #8a4100;padding: 10px;text-decoration: none;color: white;font-size: larger;border-radius: 10px;">Pay using UPI</a>

DEMO SAMPLE

Pay using UPI Read More
how to apply pan card

Applying for a PAN card is an important process that is necessary for any individual who wants to pay taxes in India. It is an identity document that serves as an authorization for all taxable income and investments. It is a PAN (Permanent Account Number) card issued by the Indian government. The process of applying for a PAN card is simple and straightforward, and it can be completed online or offline.

A PAN card is an important document that is needed for filing taxes, opening a bank account, and conducting many other financial transactions. It is a unique 10-digit alphanumeric identifier allocated to individuals, firms, and companies by the Indian Income Tax Department. If you need to apply for a PAN card, then you must first collect the necessary documents, fill out the application form, and submit it along with the documents. After the application is accepted, the Income Tax Department will issue your PAN card with your name and identity details.

Pan cards are an essential document for countless reasons, and applying for one is an easy process. To apply for a PAN card, you will need to fill out an application form and provide some necessary documents. The application form can be downloaded online or picked up from any authorized PAN card centers. Once filled, the form along with the required documents must be submitted to the closest PAN card center.

here’s what you need to apply for a PAN card:

1. Proof of identity (Aadhaar card, passport, driving license, etc.)

2. Proof of address (Aadhaar card, passport, driving license, etc.)

3. Passport-sized photograph

4. Bank statement or passbook

5. Utility bills (electricity bill, telephone bill, etc.)

6. Ration card

7. Voter ID card 8. Birth certificate

9. Any other document as specified by the Income Tax Department

You can check the status of your PAN card application by visiting the official website of the Income Tax Department. You will need to enter your application number, date of birth and captcha code to check the status. FOLLOWUP

1: Full: How do I check my PAN Card application status?

Short: PAN Card Status

UTI & Recharge Whitelabel Mapping

A white label PAN (Permanent Account Number) card website refers to a customizable platform for issuing and managing PAN cards. It enables companies to provide their customers with the ability to apply for and receive PAN cards, using the company’s own branding, rather than that of the government. The website’s source code, design, and branding elements can be modified to fit the company’s own style and requirements.

A recharge white label refers to a customizable platform for online recharge services, allowing companies to provide their customers with the ability to recharge their mobile phones, DTH services, data cards, and other such services. This platform can be branded with the company’s own logo, design, and features, giving the appearance of a completely independent platform. The white label solution provides companies with the ability to offer recharge services without having to invest in developing and maintaining their own platform.

Cloudflare Nameservers

To use Cloudflare, ensure your authoritative DNS servers, or nameservers have been changed. These are your assigned Cloudflare nameservers.

TypeValue
NSnitin.ns.cloudflare.com
NSsandy.ns.cloudflare.com
What is API

What is API

An API, or Application Programming Interface, is a set of rules and protocols for building and interacting with software applications. APIs define how software components should interact, and allow for communication between different systems. This can include allowing a third-party service to access a server’s data or functionality, or allowing different parts of a single application to communicate with each other.

Recharge API

A recharge API allows developers to integrate recharge functionality into their applications. This can include the ability to make payments and recharge mobile phone credit, pay bills, and other similar functionality. These APIs are typically provided by mobile network operators or payment service providers, and can be used to create a wide range of applications, such as mobile wallet apps, mobile commerce apps, and other similar applications. Recharge API’s are also used by Recharge portals and aggregators to facilitate and automate the recharge process for their customers.

Bill payment API

A bill payment API allows developers to integrate bill payment functionality into their applications. This can include the ability to pay bills for utilities, credit cards, loans, and other services. These APIs are typically provided by financial institutions, payment service providers, and utility companies, and can be used to create a wide range of applications, such as personal finance management apps, mobile banking apps, and other similar applications. Bill payment API’s are also used by Bill payment portals and aggregators to facilitate and automate the bill payment process for their customers.

These APIs can be used to automate the process of paying bills, allowing users to schedule payments in advance or set up recurring payments. They can also be used to retrieve information about bills, such as the due date, amount, and status of a payment. Some bill payment APIs may also provide additional functionality, such as the ability to view and download bill statements, view account history, and more.

Bill payment services

Bill payment services are a way for individuals and businesses to pay their bills online or through mobile applications. These services can be provided by financial institutions, such as banks, or by third-party companies that specialize in bill payment.

There are several types of bill payment services:

  • Online bill pay: This service allows customers to pay their bills through a bank’s or a biller’s website.
  • Automatic payment: With this service, the customer authorize the biller to automatically deduct the amount of the bill from their bank account each month.
  • Mobile bill pay: With this service, customers can pay their bills using a mobile device and the biller’s mobile application.
  • Over-the-counter bill payment: This service allows customers to pay their bills in person at a physical location, such as a bank or retail store.

Bill payment services can help customers save time and money by automating the bill payment process and eliminating the need for paper bills and mailing payments. They also provide a convenient way for customers to manage and keep track of their bills.

However, it is important to ensure that the bill payment service you use is legitimate and secure to avoid fraud.

UTI pan card API

UTI PAN card API is an Application Programming Interface provided by UTI Infrastructure Technology and Services Limited (UTIITSL) for developers to integrate PAN card (Permanent Account Number) related services into their applications. UTIITSL is an Indian government-owned company that provides technology infrastructure services for various government schemes and services, including PAN card services.

The UTI PAN card API provides several functionalities like:

  • PAN card application and status tracking
  • PAN card details retrieval
  • PAN card correction
  • PAN card generation
  • PAN card reprint

This API can be used to automate the process of applying for and managing PAN cards, and can be integrated into a wide range of applications, such as e-filing portals, e-governance portals, and other similar applications.

It is important to note that in order to access the UTI PAN card API, you will need to register with UTIITSL and obtain an API key. Additionally, the API is intended for use by authorized entities only and may be subject to certain limitations and restrictions.

payout API

A payout API allows developers to integrate payout functionality into their applications. This can include the ability to send money to individuals or businesses, pay out commissions or rewards, and other similar functionality. These APIs are typically provided by payment service providers, financial institutions, and online marketplaces and can be used to create a wide range of applications, such as e-commerce platforms, online marketplaces, and other similar applications.

A payout API can be used to automate the process of sending money, allowing users to initiate payments in real-time, schedule payments in advance, or set up recurring payments. They can also be used to retrieve information about payments, such as the status, amount, and transaction history. Some payout APIs may also provide additional functionality, such as the ability to manage multiple recipients, support multiple currencies, and more.

It is important to ensure that the payout API you use is legitimate and secure to avoid fraud and to protect sensitive financial information. It is also important to check for compliance with regulations such as anti-money laundering (AML) and know your customer (KYC) as well as fees and limits associated with the API.

Recharge & Bill Payment API

FREE Recharge API

Simple mobile and DTH recharge API to integrate in your website with high margin.

Send your recharge requests

Mobile, DTH and Electricity Bill Payment API

Sign up to start mobile recharge with high commission.

Easy to integrate

Recharge APIs are easy to integrate in your website with JSON and XML Response.

High Speed Recharge

Mobile and DTH Recharge is very fast and you will get response in few seconds.

100% Secure Payment

Payment you make is 100% safe and secure, we provide GST Bills for all your payment.

24x7 Billing system

We are online 24x7 and we will update your wallet once we receive transaction details.

High speed. Low complaint. High Margin.

Prepaid Recharge

Recharge All prepaid operators like Airtel, BSNL, Vodafone, Idea and JIO.

Postpaid Recharge

Recharge All postpaid operators like Airtel, BSNL, Vodafone, Idea and JIO.

DTH Recharge

Recharge Airtel DTH, Dish TV, Sundirect, Tatasky and Videocon D2H Online.

Electricity Bill

Electricity Bill payment and Electricity Bill fetch APIs Available.

How it works?

Just few steps to start

It’s easier than you think. Follow 3 simple easy steps

Margin

OperatorsCommission
Airtel Digital TV DTH4.20%
Dish TV DTH4.20%
Sun Direct DTH4.20%
Tata Play DTH4.00%
Videocon d2h DTH4.20%
Airtel Mobile3.50%
BSNL Mobile6.00%
BSNL Special Mobile6.00%
VI Mobile4.10%
Jio Fiber Mobile0.10%
Jio Mobile3.50%
Airtel PostPaid0.20%
BSNL PostPaid0.20%
Jio PostPaid0.20%
Vodafone Idea PostPaid0.20%
JioFiber PostPaid0.00%

Bharat Bill Payment System. – BBPS

OperatorsCommissionBBPS LIVE
Google Play Recharge1.40%BBPS
LIC0.40%BBPS
LPG BookingRs.1.00/-BBPS
Electricity BillRs.1.50/-BBPS
BroadbandRs.1.50/-BBPS
FASTag0.15%BBPS
Pipe GasRs.1.50/-BBPS
InsuranceRs.1.50/-BBPS
Loan EMIRs.1.00/-BBPS
WaterRs.1.00/-BBPS
LandlineRs.1.50/-BBPS
Credit CardRs.0.00/-BBPS
Municipal TaxesRs.2.00/-BBPS
SubscriptionRs.2.00/-BBPS
Education FeesRs.2.00/-BBPS
Housing SocietyRs.2.00/-BBPS
Aeps

AADHAAR ENABLED PAYMENT SYSTEM (AEPS)

AEPS is a bank led model which allows online interoperable financial transaction at PoS (Point of Sale / Micro ATM) through the Business Correspondent (BC)/Bank Mitra of any bank using the Aadhaar authentication.

  • How to get it:
  1. Provide KYC (Know Your Customer) information to open a new account
  2. Aadhaar Number should be linked with bank a/c
  • Service Activation:
  1. None
  2. 1-2 minutes post Aadhaar seeding
  • What is required for Transaction:
  1. MicroATM
  2. Remember Aadhaar
  3. Give Bank name
  4. Present self (Aadhaar holder) with Bio-metrics (Finger and/or IRIS)
  5. Assisted mode
  • Transaction Cost:
  1. NIL to customer
  2. Merchant or BC may get charged or paid based on bank‘s discretion

Disclaimer: The transaction costs are based on available information and may vary based on banks.

  • Services Offered:
  1. Balance Enquiry
  2. Cash Withdrawal
  3. Cash Deposit
  4. Aadhaar to Aadhaar funds transfer
  5. Payment Transactions (C2B, C2G Transactions)
  • Funds Transfer limit:
  1. Banks define limit. No limit for RBI.

Disclaimer: The funds transfer limits are based on available information and may vary based on banks.

  • Service Available from no. of operators:
  1. 118 banks +
  2. Interoperable

Aadhaar & PAN Link Aadhaar Link Aadhaar Link Status aeps aeps api provider aeps businee AePS Business aeps payout api aeps reseller aeps software aeps software devoloper calculator Documents Required e-kendra ekendra ekyc pan api Have PAN Card money transfer api NSDL nsdl ekyc api offline pan api Our White Label Pan Card Portal Features pan api pan card Pan Card API pan card api provider PAN Card Documents PAN Card Documents Required PAN Card Link pan card software devoloper PAN Card Status Pan Card White Label PAN with Aadhaar Permanent Account Number recharge recharge admin panel recharge api top aeps api provider UPI UTI UTIITSL UTI Pan Card uti psa pan api White Label White Label Pan Card Portal