<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link rel="stylesheet" href="style.css" type="text/css" charset="utf-8" />
<link rel="SHORTCUT ICON" href="favicon.ico" />
</head>
<script>
<!--
function displayWindow(url, width, height) {
var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=yes,menubar=no' );
}
//-->
</SCRIPT>
<body>
<div id="outer">
<div id="wrapper">
<div id="header">
<div id="menu">
<p id="m"> </p>
<p id="m1"> </p>
<p id="m2"> </p>
<p id="m3"> </p>
</div>
<div id="aaa">
<A HREF="java script:displayWindow('aaa.html',450,400)">
<button style="color: red; font-size:16px; width:120px; height:35px; " name="button1"></button></a>
</div>
</div>
<div id="nav">
<div></div>
</div>
<div></div>
<div class="twitter" id="newsletter_input">
<p> </p>
<p></p>
</div>
<div id="body">
<div id="body-nner">
<div id="body-left">
<div id="naglowek_aa">
<font color="#008BD2">Kontakt</font>
</div>
<br>
<form name="contactform" method="post" action="">
<table width="450px" align="center">
<tr>
<td valign="top">
<label for="first_name"><br>
Imię *</label>
</td>
<td valign="top">
<br /> <input name="first_name" type="text" class="i1" size="30" maxlength="50">
</td>
</tr>
<tr>
<td height="26" valign="top"">
<label for="last_name"> Nazwisko *</label>
</td>
<td valign="top">
<input class="i1" type="text" name="last_name" maxlength="50" size="30">
</td>
</tr>
<tr>
<td valign="top">
<label for="email"> Email Address *</label>
</td>
<td valign="top">
<input class="i1" type="text" name="email" maxlength="80" size="30">
</td>
</tr>
<tr>
<td valign="top">
<label for="telephone"> Numer telefonu</label>
</td>
<td valign="top">
<input class="i1" type="text" name="telephone" maxlength="30" size="30">
</td>
</tr>
<tr>
<td valign="top">
<label for="comments"> Zapytanie *</label>
</td>
<td valign="top">
<textarea class="i1" name="comments" maxlength="1000" cols="25" rows="6"></textarea>
</td>
</tr>
<tr>
<td colspan="2" style="text-align:center">
<input class="i2" type="submit" value="wyślij" style="width: 80px; height: 35px"></td>
</tr>
</table>
</form>
<?php
if(isset($_POST['email'])) {
// EDIT THE 2 LINES BELOW AS REQUIRED
$email_to = "aa@wp.pl";
$email_subject = "Your email subject line";
function died($error) {
// your error code can go here
echo '<span style="font-size:10px" "color:#FF0000;">We are very sorry, but there were error(s) found with the form you submitted.</span> ';
echo '<span style="font-size:10px" "color:#FF0000;">These errors appear below.<br /><br /></span> ';
echo $error."<br /><br />";
echo '<span style="font-size:10px" color:#FF0000;">Please go back and fix these errors.<br /><br /></span> ';
}
// validation expected data exists
if(!isset($_POST['first_name']) ||
!isset($_POST['last_name']) ||
!isset($_POST['email']) ||
!isset($_POST['telephone']) ||
!isset($_POST['comments'])) {
died('We are sorry, but there appears to be a problem with the form you submitted.');
}
$first_name = $_POST['first_name']; // required
$last_name = $_POST['last_name']; // required
$email_from = $_POST['email']; // required
$telephone = $_POST['telephone']; // not required
$comments = $_POST['comments']; // required
$error_message = "";
$email_exp = '/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/';
$error_message .= '<span style="font-size: 10px;" color:#FF0000;">The Email Address you entered does not appear to be valid.<br /></span> ';
}
$string_exp = "/^[A-Za-z .'-]+$/";
$error_message .= '<span style="font-size: 10px;" color:#FF0000;">The First Name you entered does not appear to be valid.<br /></span> ';
}
$error_message .='<span style="font-size: 10px;" color:#FF0000;">The Last Name you entered does not appear to be valid.<br /></span> ';
}
$error_message .= '<span style="font-size: 10px;" color:#FF0000;">The Comments you entered do not appear to be valid.<br /></span> ';
}
if(strlen($error_message) > 0
) {
died($error_message);
}
$email_message = "Form details below.\n\n";
function clean_string($string) {
$bad = array("content-type","bcc:","to:","cc:","href");
}
$email_message .= "First Name: ".clean_string($first_name)."\n";
$email_message .= "Last Name: ".clean_string($last_name)."\n";
$email_message .= "Email: ".clean_string($email_from)."\n";
$email_message .= "Telephone: ".clean_string($telephone)."\n";
$email_message .= "Comments: ".clean_string($comments)."\n";
// create email headers
$headers = 'From: '.$email_from."\r\n".
'Reply-To: '.$email_from."\r\n" .
@mail($email_to, $email_subject, $email_message, $headers);
?>
<!-- include your own success html here -->
<br />
<span class="gg">Thank you for contacting us. We will be in touch with you very soon.</span>
<?php
}
?>
<br>
<center>
</center>
</div>
<div class="clear"></div>
</div>
<div id="copyright">
<div id="copyright-left"> </div>
</div>
<div class="clear"> </div>
</div>
</div>
</div>
<div id="pasek_dolny">
<div id="copyright">
<div id="copyright-left"></div>
</div>
<div id="kontakt"></div>
</div>
</body>
</html>