Посмотрите, там где пункт: Вы оплатили взнос? Появляется ненужный текст.
<?php
//IMPORTANT!!
//Put in your email address below:
$to = 'email@11gallery.netai.net';
//User info (DO NOT EDIT!)
$name = stripslashes($_POST['name']); //sender's name
$email = stripslashes($_POST['email']); //sender's email
$countries = stripslashes($_PIST['countries']);
//The subject
$subject = "РЕГИСТРАЦИЯ НА ТУРНИР "; //The default subject. Will appear by default in all messages. Change this if you want.
$subject .= stripslashes($_POST['subject']); // the subject
//The message you will receive in your mailbox
//Each parts are commented to help you understand what it does exaclty.
//YOU DON'T NEED TO EDIT IT BELOW BUT IF YOU DO, DO IT WITH CAUTION!
$msg = "Название команды : $name \r\n"; //add sender's name to the message
$msg .= "e-Mail : $email \r\n"; //add sender's email to the message
$msg .= "Страна : $subject \r\n\n"; //add subject to the message (optional! It will be displayed in the header anyway)
$msg .= "---Message--- \r\n".stripslashes($_POST['message'])."\r\n\n"; //the message itself
//Extras: User info (Optional!)
//Delete this part if you don't need it
//Display user information such as Ip address and browsers information...
$msg .= "---User information--- \r
\n"; //Title
$msg .= "User IP : ".$_SERVER["REMOTE_ADDR"]."\r\n"; //Sender's IP
$msg .= "Browser info : ".$_SERVER["HTTP_USER_AGENT"]."\r\n"; //User agent
$msg .= "User come from : ".$_SERVER["HTTP_REFERER"]; //Referrer
// END Extras
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru">
<head>
<title>Турнир по дисциплине cs 1.6</title>
<link rel="shortcut icon" href="images/favicon.ico">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="Ajax Contact form using CheckForm2 and NiceForms." />
<meta name="keywords" content="php, contact form, Ajax, mootools, checkform2, niceforms, Moo Floor, class, javascript, spamcheck, badboy.ro" />
<link rel="stylesheet" href="css/main.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/style_eek.css">
<script type="text/javascript" src="js/mootools.js"></script>
<!-- jQuery and Modernizr-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<!-- Countdown timer and other animations -->
<script src="js/jquery.countdown.js"></script>
<script src="js/script.js"></script>
<script src="js/script_1.js"></script>
<!-- Formcheck2 / Moo.Floor.ch -->
<!-- http://moo.floor.ch/?p=18 -->
<!-- NiceForms / BadBoy.ro -->
<!-- http://www.badboy.ro/articles/2005-07-23/niceforms_preview/ -->
<script type="text/javascript" src="js/niceforms.js"></script>
</style>
<link rel="stylesheet" href="/css/validationEngine.jquery.css" type="text/css"/>
<link rel="stylesheet" href="/css/template.css" type="text/css"/>
<script src="../js/jquery-1.8.2.min.js" type="text/javascript"></script>
<script src="../js/languages/jquery.validationEngine-en.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/jquery.validationEngine.js" type="text/javascript" charset="utf-8"></script>
<script>
jQuery(document).ready(function(){
// binds form submission and fields to the validation engine
jQuery("#third").validationEngine();
});
/**
*
* @param {jqObject} the field where the validation applies
* @param {Array[String]} validation rules for this field
* @param {int} rule index
* @param {Map} form options
* @return an error string if validation failed
*/
function checkHELLO(field, rules, i, options){
if (field.val() != "HELLO") {
// this allows to use i18 for the error msgs
return options.allrules.validate2fields.alertText;
}
}
</script>
</head>
<body>
<!-- The contact form starts here-->
<?php
if ($_SERVER['REQUEST_METHOD'] != 'POST'){
$self = $_SERVER['PHP_SELF'];
?>
<!-- Start HTML form -->
<form name="form" method="post" id="third" action="<?php echo $self;?>" class="niceform">
<center><h1>РЕГИСТРАЦИЯ НА ЗИМНИЙ ТУРНИР ПО ДИСЦИПЛИНЕ CS 1.6</h1></center>
<!-- Name -->
<label for="name"><strong><span class="blue">*</span> Название команды : </strong></label>
<input value="" data-validation-engine="validate[required]" id="name" name="name" type="text" class="validate['required','length[3,-1]','nodigit']" size="20" type="text"/>
<!-- Email -->
<label for="email"><strong><span class="blue">*</span> Email : </strong></label>
<input value="" data-validation-engine="validate[required,custom[email]]" id="email" name="email" size="20" type="text"/>
<!-- Subject -->
<label for="subject"><strong><span class="blue">*</span> Страна / Город где проживаете : </strong></label>
<input value="" data-validation-engine="validate[required]" id="subject" name="subject" type="text" class="validate['required']" size="20" /type="text" />
<!-- Website -->
<label for="site"><strong><span class="blue">*</span> Оплата Webmoney U2312314122:</strong> <a href="http://arbitrage.webmoney.ru/asp/claims.asp?wmid=295369246845">(информация об аккаунте webmoney)</a> </label>
<!-- Message -->
<label for="msg"><strong><span class="blue">*</span> Вы оплатили взнос? : </strong></label><br />
<textarea id="message" name="message" type="text" value="" data-validation-engine="validate[required]" rows="10" cols="30" type="text" /></textarea>
<!-- Spam Check -->
<label for="spamcheck"><span class="blue">*</span> <acronym title="[ Spam prevention ]"><strong>Вы робот?</acronym> : <span class="blue">2 + 3 = ???</span></strong></label>
<input value="" data-validation-engine="validate[required]" id="spamcheck" name="spamcheck" type="text" size="5" />
<!-- Spam Check -->
<label for="Agree">С правилами согласен (*)<em></em></label>
<input value="" data-validation-engine="validate[required]" class="cb" id="Agree" name="Agree" class="validate['required']" type="checkbox" type="text"/><br /><br />
<input type="submit" class="buttonSubmit" value="Отправить!" />
<!-- Niceforms: mouse over effect -->
<!-- Do not remove the line below -->
<div id="stylesheetTest"></div>
</form>
<div class="social-media-arrow"></div>
<footer>
<ul>
<center><span class="blue">*</span>Свяжитесь с главным администратором <a class="skype" href="skype:ilyha1996?add"></a></center>
</ul>
</footer>
</div>
<?php
} else {
error_reporting(0);
if (mail($to, $subject, $msg, "Content-Type:text/plain; Charset=utf-8\r\nFrom: $email\r\nReply-To: $email\r\nReturn-Path: $email\r\n"))
//Message sent!
//It the message that will be displayed when the user click the sumbit button
//You can modify the text if you want
echo nl2br("
<div class=\"MsgSent\">
<h1>Успех!</h1>
<p>Ваша команда <b><?=$name;?></b>, будет рассмотрена!<br />.</p>
</div>
");
else
// Display error message if the message failed to send
echo "
<div class=\"MsgError\">
<h1>Error!!</h1>
<p>Sorry <b><?=$name;?></b>, your message failed to send. Try later!</p>
</div>";
}
?>
</body>
</html>