MailChimp API Integration in PHP - Tutorial in Hindi (ok)

https://www.youtube.com/watch?v=Y5hrSqLk29Y&t=2s

Đọc bài liên kết: https://learnemail.gitbook.io/emailphp/mailchimp-api-ok

File đã hoàn thành :)

515KB
archive
Open

Hướng dẫn: Link chính: https://github.com/drewm/mailchimp-api Bước 0: Chuẩn bị form submit và file php Bước 1: composer require drewm/mailchimp-api && composer install && require("vendor/autoload.php") Bước 2: Lấy api_key vào link https://us20.admin.mailchimp.com/account/api/ và lấy 1 cái sử dụng Bước 3: Lấy list_id vào link https://us20.admin.mailchimp.com/lists/ để tìm

C:\xampp\htdocs\code\index.html

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <!-- Latest compiled and minified CSS & JS -->
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
  <script src="https://code.jquery.com/jquery.js"></script>
</head>
<body>
  <div class="container">
    <div class="col-sm-6 col-sm-offset-3">
      <h1 class="text-center">MailChimp</h1>
      <form action="form-submit.php" method="POST" role="form">
        <legend>Form title</legend>
        <div class="form-group">
          <label for="fname">First Name</label>
          <input type="text" class="form-control" id="fname" name="fname" placeholder="First Name">
        </div>
        <div class="form-group">
          <label for="lname">Last Name</label>
          <input type="text" class="form-control" id="lname" name="lname" placeholder="Last Name">
        </div>
        <div class="form-group">
          <label for="mail">Email</label>
          <input type="mail" class="form-control" id="email" name="email" placeholder="Email">
        </div>
        <button type="submit" class="btn btn-primary">Submit</button>
      </form>
    </div>
  </div>
</body>
</html>

C:\xampp\htdocs\email\form-submit.php

Kết quả:

Last updated

Was this helpful?