FormClasses/form.php

37 lines
1.5 KiB
PHP
Raw Normal View History

2024-05-21 11:53:40 +03:00
<?php $form = '<form action="info.php" target="_blank" method="post">
2024-05-21 17:06:42 +03:00
Фамилия:<br>
2024-05-21 11:53:40 +03:00
<input type = "text" name = "surname" required size="50" autofocus placeholder="Фамилия"> <br> <br>
2024-05-21 17:06:42 +03:00
Имя:<br>
2024-05-21 11:53:40 +03:00
<input type = "text" name = "name" required size="50" placeholder="Имя"> <br> <br>
2024-05-21 17:06:42 +03:00
Отчество (если есть):<br>
2024-05-21 11:53:40 +03:00
<input type = "text" name = "patronymic" size="50" placeholder="Отчество"> <br> <br>
Дата Рождения: <br>
<input type="date" name="dateOfBirth" required> <br> <br>
Ваш пол: <br>
<input type="radio" name="gender" value="Мужчина" checked> Мужчина
<input type="radio" name="gender" value="Женжина"> Женжина<br> <br>
Номер телефона (Например 1234567890): <br>
<select name="countryCode">
<option value="+7" >Russia +7</option>
<option value="+38">Ukraine +38</option>
</select>
<input type="tel" name="phoneNumber" pattern="[0-9]{10}" maxlength="10" required placeholder="1234567890"> <br> <br>
Email адрес: <br>
<input type="Email" name="email" required> <br><br>
<input type = "submit" value="Подтвердить">
<input type="reset">
</form>';
echo $form;
2024-05-27 11:40:02 +03:00
/* $formSearch =
'<form action="info.php" target="_blank" method="post">
<input type="search" name="result_search"> <br> <br>
<input type="submit" value="Поиск">
</form>';*/