<?php
session_start();
include '../assets/constant/config.php';

try {
  $conn = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password);
  $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch (PDOException $e) {
  echo "Connection failed: " . $e->getMessage();
}
?>
<?php include('include/sidebar.php'); ?>

<?php include('include/header.php'); ?>

<!--  connect author at mdkhairnar92@gmail.com  -->



<!DOCTYPE html>
<html lang="en">
<head>
  <title>Instamojo</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet">
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body>
 
<div class="container mt-3" style="width: 50%;">
  <h2 style="color:blue;">Instamojo Payment Integration in PHP</h2>
  <form action="app/instamojo.php" method="POST">
    <div class="mb-3 mt-3">
      <label for="email" style="color:blue;">Name:</label>
      <input type="text" class="form-control" id="name" placeholder="Enter  Name" name="name">
    </div>
    <div class="mb-3 mt-3">
      <label for="email" style="color:blue;">Email:</label>
      <input type="email" class="form-control" id="name" placeholder="Enter  Email" name="email">
    </div>
    <div class="mb-3">
      <label for="pwd" style="color:blue;">Amount:</label>
      <input type="number" class="form-control" id="amount" placeholder="Enter Amount" name="amount">
    </div>
    <div class="mb-3">
      <label for="pwd" style="color:blue;">Purpose:</label>
      <input type="text" class="form-control" id="description" placeholder="Enter Description" name="purpose">
    </div>
    <button type="submit" class="btn btn-primary" >Pay</button>
  </form>
</div>
 
</body>
</html>
<?php include('include/footer.php'); ?>
<!--  Author Name: Mayuri K. 
 for any PHP, Codeignitor or Laravel website or software development contact me at mayuri.infospace@gmail.com  -->
