firstPHP/index.php

20 lines
705 B
PHP

<?php
require_once "src/Form.php";
use src\Form;
$form = new Form();
$form->beginForm("tsad");
$form->input("phone", ['placeholder' => 'Введите телефон', 'class' => 'form-group']);
$form->input("email", ['placeholder' => 'Введите email']);
$form->input("email", ['type' => 'number']);
$form->createLabel("Button", ["for" => "b1"]);
$form->createCheckbox("Button", "1", ["class" => 'sdsa', "id" => "b1"]);
$form->createLabel("RadioButton", ["for" => "r2"]);
$form->createRadio("name1", ["id" => "r2"]);
$form->createLabel("RadioButton", ["for" => "r3"]);
$form->createRadio("name1", ["id" => "r3"]);
$form->createTextarea("textarea", "dsadasads", ["id" => "t1"]);
$form->endForm();