Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Form Example</title>
</head>
<body>
<form action="" method="post">
<div><label for="firstname">First name:
<input type="text" name="firstname" id="firstname"></label>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Counting to Ten</title>
</head>
<body>
<p>
<?php
for ($count = 1; $count <= 10; ++$count)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Counting to Ten</title>
</head>
<body>
<p>
<?php
$count = 1;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Form Example</title>
</head>
<body>
<form action="name.php" method="post">
<div><label for="firstname">First name:
<input type="text" name="firstname" id="firstname"></label>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Form Example</title>
</head>
<body>
<form action="name.php" method="post">
<div><label for="firstname">First name:
<input type="text" name="firstname" id="firstname"></label>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Query String Link Example</title>
</head>
<body>
<p><a href="name.php?name=Kevin">Hi, I&rsquo;m Kevin!</a></p>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Today&rsquo;s Date</title>
</head>
<body>
<p>Today&rsquo;s date (according to this web server) is
<?php
INSERT INTO joke
(joketext, jokedate) VALUES (
'"Королеве - подвески, Констанции - подвязки, Портосу - подтяжки ...", - поторял, чтобы не перепутать, д\'Артаньян по дороге в Англию.',"2012-04-01"
)
INSERT INTO joke
(joketext, jokedate) VALUES (
"Зачем цыплёнок перешёл дорогу? Чтобы попасть на другую сторону!","2012-04-01"
)
INSERT INTO joke SET
joketext = "Зачем цыплёнок перешёл дорогу? Чтобы попасть на другую сторону!",
jokedate = "2012-04-01"