<?php
$message = "";
if (count($_POST)) {
// обрабатываем данные формы
// задаем значение переменной $message
}
?>
<?php if ($message) { ?>
<div id="error_message" style="width:200px; color:red; position:fixed; left:50%; margin-left:-100px; text-align:center;"></div>
<?php } else { ?>
<form action="" method="post" target="error_message">
<input name="reg_nickname" type="text" placeholder="Введите имя" required />
<input id="id_reg_email" name="reg_email" type="email" placeholder="Введите e-mail" required />
<input id="id_reg_pass" name="reg_pass" type="password" placeholder="Введите пароль" required />
<input id="id_reg_confirmpass" name="reg_confirmpass" type="password" placeholder="Подтвердите пароль" required />
<input type="submit" value="Зарегистрироваться" onclick="return check_email_pass();" style="margin-top:20px;" />
</form>
<?php } ?>
<script type="text/javascript" src="/js/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="/js/jcarousellite_1.0.1.js"></script>
<script type="text/javascript" src="/js/shop-script.js"></script>
<script>
$(function() {
$("#newsticker").jCarouselLite({
vertical: true;
hoverPause:true;
btnPrev: "#news-prev",
btnNext: "#news-next",
visible: 3,
auto:3000,
speed:500
});
$("#style-grid").click(function() {});
$("#style-list").click(function() {
$("#block-tovar-grid").hide();
});
})
</script>
var binom_link='http://tracker.domain/click.php?camp_id=xxx&key=zzzzzzzzzzzzzzzzz';
document.body.innerHTML += '<img src="'+binom_link+'&lp_type=pixel&'+window.location.search.substring(1)+'" style="display:none"/>'
// или
var img = document.sreateElement('img')
img.src = binom_link+'&lp_type=pixel&'+window.location.search.substring(1)
document.body.appendChild(img)