<?php
$selected = $_POST['group'] ?? null;
?>
<select id="group" name="group" class="form-control form-control-sm">
<option value="#">Выберите группу</option>
<option value="00001" <?= $selected == '00001' ? 'selected' : '' ?> >Группа 1</option>
<option value="00002" <?= $selected == '00002' ? 'selected' : '' ?> >Группа 2</option>
<option value="00003" <?= $selected == '00003' ? 'selected' : '' ?> >Группа 3</option>
</select>
<form action="receive_data.php" method="post">
<input name="username">
<button type="submit">Send</button>
</form>
<?php
$name = $_POST['username'];
$to = 'nobody@example.com';
$subject = 'the subject';
$message = 'hello '.$name;
$headers = 'From: webmaster@example.com';
mail($to, $subject, $message, $headers);
header('Location: /other_page.php');
box-sizing: border-box;
width: calc((100% - 30px * 2) / 3);
gap: 20px 30px;
.grid {
display: flex;
flex-wrap: wrap;
gap: 20px 30px;
}
.item {
box-sizing: border-box;
width: calc((100% - 30px * 2) / 3);
text-decoration: none;
color: #000;
padding: 20px;
border: 1px solid #000;
}
function makeItem(title) {
return `<a class="dropdown-item"><i class="icon icon-line-circle"></i><span>${title}</span></a>`;
}
fetch('../russia.json')
.then(response => response.json())
.then(json => {
const itemsHtmlString = json.map(item => makeItem(item.city)).join()
$('.search__city .dropdown-menu').html(itemsHtmlString);
});
<div class="servers">
<p class="server-name">НМ</p>
<p class="server-name">???</p>
<img class="servers_image" src="content/nm11.png">
<img class="servers_image" src="content/dont_know.png">
</div>
.servers {
display: grid;
grid-template-columns: 1fr 1fr;
column-gap: 50px;
row-gap: 3em;
}
.server-name{
/* display: inline-block; */
/* width: 10px; */
/* position: relative; */
font-family: 'Roboto Slab', serif;
font-size: 30px;
/* position: relative; */
/* top: 25px; */
/* left: 85px; */
text-align: center;
}
.servers_image{
height: 300px;
/* width: 230px; */
border-radius: 35px;
/* margin-bottom: 3em; */
/* margin-right: 50px; */
}
.third__main-special{
display: flex;
- justify-content: space-between;
}
.third__main-special-body{
display: block;
- width: 964px;
+ flex-grow: 1;
}
Или плюс состоит лишь в том, что браузер, когда читает файл делая это сверху-вниз, сначала натыкается на "мобильные" стили?