I have a visiting panel on my site with a registration form. That is, when you click on the "register" button, the page is not updated, just the panel leaves and the alert pops up:
"e-mail sent a letter ...".
Here is my code:
$sticker.click(function() { if ($panel.hasClass('visible')) { <?php if($_GET["email"]==""||$_GET["pass"]==""){ ?> alert("Введите e-mail и пароль!"); <?php } else {?> hidePanel(); <?php } ?> } else { showPanel(); } }); And so, whatever I wrote in the "email" and "pass" , I always pop up:
"Enter your e-mail and password!".
<input type="text" name="email">and<input type="password" name="pass">respectively. Which are inside theformwithaction="get". And theformalready in thedivwith the panel itself. - i am so lame