This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
session_start(); | |
$num = (isset ($_SESSION["num"])) ? $_SESSION["num"] : 0; | |
$num++; | |
$_SESSION["num"] = $num; | |
echo "Пользователь обновил страницу $num раз"; | |
// session_destroy (); /*- удаляет сессию*/ | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$message = "Это самое простое сообщение в мире!"; | |
$to = "[email protected]"; | |
$from = "[email protected]"; | |
$subject = "Тема сообщения"; | |
$subject = "=?utf-8?B?".base64_encode($subject)."?="; | |
$headers = "from: $from\r\nReply-to: $from\r\nContent-type: text/plain; charset=utf-8\r\n"; | |
mail ($to, $subject, $message, $headers); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p id="test"> | |
<img src="https://m-strana.ru/upload/medialibrary/7d6/7d634a1f32fa6122491517638a3e2fd9.jpg" | |
alt="изображение" title="изображение" id="img" width="200"> | |
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="#" id="hide" onclick="return false">Скрыть комментарии</a> | |
<a href="#" id="show" style="display:none" onclick="return false">Показать комментарии</a> | |
<div id="comments"> | |
<p>Комментарий №1</p> | |
<p>Комментарий №2</p> | |
<p>Комментарий №3</p> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="comments"> | |
<p>Комментарий №1</p> | |
<p>Комментарий №2</p> | |
<p>Комментарий №3</p> | |
</div> | |
<form name="form" action="#" method="post" id="form" style="display:none" onsubmit="return false" /> | |
<textarea id="textarea" name="comment" cols="30" rows="10"></textarea> | |
<input type="submit" name="send" value="Добавить комментарий" id="done" /> | |
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> | |
<form name="form" id="form"> | |
<label for="female">Женский</label> | |
<input type="radio" id="female" name="sex" value="female" /> | |
<label for="male">Мужской</label> | |
<input type="radio" id="male" name="sex" value="male" /> | |
<br /><br /> | |
<span id="message"></span> | |
<input type="button" id="done" onclick="return valid()" value="Готово" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="ru-RU"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" > | |
<meta name="description" content="" /> | |
<meta name="keywords" content="" /> | |
<link rel='stylesheet' id='' href='css/.css' type='text/css' media='all' /> <link href="css/style.css" rel="stylesheet" type="text/css" /> | |
<link href="css/mobile.css" rel="stylesheet" type="text/css" /> | |
<script type='text/javascript' src='scripts/jquery-2.1.1.js'></script> | |
<script type='text/javascript' src='scripts/.js'></script> |
NewerOlder