index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Сказка</title>
</head>
<body>
<h1>Story</h1>
<h3>Please, fill in the blanks bolow, and i'll tell you a story</h3>
<form method="post" action="index.php">
<table border = 1>
<tr>
<th>City:</th>
<th>
<input type="text" name="city" value=" ">
</th>
</tr>
<tr>
<th>Tailor name:</th>
<th>
<input type="text" name="tailorName" value="">
</th>
</tr>
<tr>
<td colspan = 2>
<center>
<input type="submit" value="tell me the story">
</center>
</td>
</tr>
</table>
</form>
</body>
</html>
index.php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<h1>Alladin</h1>
<h3>Values from the story page</h3>
<table border=1>
<tr>
<th>Variable</th>
<th>Value</th>
</tr>
<tr>
<th>city</th>
<td><?php print $city ?></td>
</tr>
<tr>
<th>Tailor name</th>
<td><? print $tailorName ?></td>
</tr>
</table>
</body>
</html>