chiro-canto/public/contact/index.php

52 lines
2.0 KiB
PHP
Executable File

<?php
$root = realpath($_SERVER["DOCUMENT_ROOT"]);
require("$root/lang/gettext.php");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact | Chiro-Canto</title>
<link rel="stylesheet" type="text/css" href="/styles/style.css">
</head>
<?php
include("$root/analytics/owa.php");
include("$root/analytics/matomo.php");
?>
<body>
<?php include("$root/menu.php"); ?>
<?php include("$root/header.php"); ?>
<section>
<h2><?=_('Contact')?></h2>
<article>
<form action="sendmail.php" method="post">
<label for="fname"><?=_('First Name')?>*</label>
<input type="text" id="fname" name="firstname" placeholder="<?=_('Your first name..')?>" required><br>
<label for="lname"><?=_('Last Name')?>*</label>
<input type="text" id="lname" name="lastname" placeholder="<?=_('Your last name..')?>" required><br>
<label for="email"><?=_('Email')?>*</label>
<input type="email" id="email" name="email" placeholder="<?=_('Your email..')?>" required><br>
<label for="website"><?=_('Website')?></label>
<input type="url" id="website" name="website" placeholder="<?=_('Your website..')?>"><br>
<label for="subject"><?=_('Subject')?>*</label>
<input type="text" id="subject" name="subject" placeholder="<?=_('Your subject..')?>" required><br>
<label for="message"><?=_('Message')?>*</label>
<textarea id="message" name="message" placeholder="<?=_('Write something..')?>" required style="height:200px"></textarea><br>
<input type="submit" value="<?=_('submit')?>"><input type="reset" value="<?=_('reset')?>">
</form>
</article>
</section>
<?php include("$root/footer.php"); ?>
</body>
<script src="/scripts/script.js"></script>
</html>