[ Поиск ] - [ Пользователи ] - [ Календарь ]
Полная Версия: исчезает форма при нажатии на кнопку
leonw
Здравствуйте! когда вводишь логин и пароль, появляется еще одна форма с кнопками, но когда нажимаешь на кнопку второй формы, то тебя перекидывает обратно. как этого избежать?
<?php
$login = $_POST['login'];
$pass = $_POST['password'];
if(empty($login) or empty($pass) )
{
echo '
<table align=center border=0 cellpadding=0 cellspacing=0 width=70%>
<tr>
<td align=center><div class=sitehere-style-3dtext>Супер</div><div class=sitehere-style-3dtext2>Панель</div></td>
</tr>
<tr>
<td align=center> </td>
</tr>
<tr>
<td align=center>
<form name=pass method=post action="" onsubmit=return SendForm();>
<table align=center border=0 cellpadding=4 cellspacing=4 width=10%>
<tr>
<td align=center><input type=text name=login size=40 maxLength=40 onMouseOver=this.style.backgroundColor="#457EB3"; onMouseOut=this.style.backgroundColor="#ffffff"></td>
<td align=center><input type=password name=password size=40 maxLength=40 onMouseOver=this.style.backgroundColor="#457EB3"; onMouseOut=this.style.backgroundColor="#ffffff"></td>
<td align=center><input type=submit name=submit value=   ВХОД    id=subscribe_button style="font-family: Arial; color: #FFFFFF; font-weight: bold; border: 1px solid #000000; background-color: #457EB3"/></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
'
;
exit();
}
if(md5($login) == '098f6bcd4621d373cade4e832627b4f6' && md5($pass) == '098f6bcd4621d373cade4e832627b4f6')
{
echo "<form name=sender2 method=post onsubmit=return SendForm();>
<input type=text2 name=name2 value=
$id>
<input type=submit name=generator value=Генерировать>
<input type=submit name=record value=Запись>
<input type=submit name=search value=Поиск>
</form>"
;
}
else
{
echo '
<table align=center border=0 cellpadding=0 cellspacing=0 width=70%>
<tr>
<td align=center><div class=sitehere-style-3dtext>Лотерея</div><div class=sitehere-style-3dtext2>Error Введите пароль</div></td>
</tr>
<tr>
<td align=center> </td>
</tr>
<tr>
<td align=center>
<form name=pass method=post action="" onsubmit=return SendForm();>
<table align=center border=0 cellpadding=4 cellspacing=4 width=10%>
<tr>
<td align=center><input type=text name=login size=40 maxLength=40 onMouseOver=this.style.backgroundColor="#457EB3"; onMouseOut=this.style.backgroundColor="#ffffff"></td>
<td align=center><input type=password name=password size=40 maxLength=40 onMouseOver=this.style.backgroundColor="#457EB3"; onMouseOut=this.style.backgroundColor="#ffffff"></td>
<td align=center><input type=submit name=submit value=   ВХОД    id=subscribe_button style="font-family: Arial; color: #FFFFFF; font-weight: bold; border: 1px solid #000000; background-color: #B50000"/></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
'
;
exit;
}
?>

как сделать чтобы форма ввода пароля исчезла, а вторая форма осталась? а то она ку дато девается?
Быстрый ответ:

 Графические смайлики |  Показывать подпись
Здесь расположена полная версия этой страницы.
Invision Power Board © 2001-2024 Invision Power Services, Inc.