- <?php
- require_once __DIR__ . '/incs/data.php';
- require_once __DIR__ . '/incs/functions.php';
- if(!empty($_POST)){
- debug($_POST);
- $fields = load($fields);
- debug($fields);
- if($errors = validate($fields)){
- debug($errors);
- }else{
- echo 'OK';
- // mail
- }
- }
- ?>
- <!doctype html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport"
- content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
- <title>Document</title>
- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
- </head>
- <body>
- <div class="container">
- <div class="row">
- <div class="col-md-6 offset-md-3">
- <form method="post">
- <div class="form-group">
- <label for="name">Имя</label>
- <input type="text" class="form-control" id="name" name="name">
- </div>
- <div class="form-group">
- <label for="email">Email</label>
- <input type="email" class="form-control" id="email" name="email">
- </div>
- <div class="form-group">
- <label for="address">Адрес</label>
- <input type="text" class="form-control" id="address" name="address">
- </div>
- <div class="form-group">
- <label for="phone">Телефон</label>
- <input type="text" class="form-control" id="phone" name="phone">
- </div>
- <div class="form-group">
- <label for="comment">Комментарий</label>
- <textarea name="comment" id="comment" rows="3" class="form-control"></textarea>
- </div>
- <div class="form-group form-check">
- <input name="agree" type="checkbox" class="form-check-input" id="agree">
- <label class="form-check-label" for="agree">Соглашаюсь с обработкой персональных данных</label>
- </div>
- <button type="submit" class="btn btn-primary">Submit</button>
- </form>
- </div>
- </div>
- </div>
- </body>
- </html>
[text] ааа
Viewer
*** This page was generated with the meta tag "noindex, nofollow". This happened because you selected this option before saving or the system detected it as spam. This means that this page will never get into the search engines and the search bot will not crawl it. There is nothing to worry about, you can still share it with anyone.
Editor
You can edit this paste and save as new:
File Description
- ааа
- Paste Code
- 20 Mar-2023
- 2.51 Kb
You can Share it: