Login rendszer FORM-ja blokkolja a szavazot
Van egy belepteto rendszerem az oldalomon, nemreg raktam be.
azt vettem eszre, hogy a szavazot blokkolja.
ez a login kodja:ez a szavazo kodja:
addig debuggoltam, mig ki nem szurtem a hibas reszt ami blokkolja a szavazast.
kitoroltem a form reszt a kodbol igy:
megoldodott a szavazo problema, de ugyebar igy meg a belepes nem mukodik. most nem ertem, hogy a form miert zavarja a szavazot, de van vmi megoldas, hogy a ketto egymas mellett beket leljen?
__________________________________________________________________________________
egy masik kis problemam szinten a loginnal kapcsolatos, megpedig a SIGNUP gomb IE-ben szetesik es nem ertem miert mivel FF-ban, Operaban, Safariban tokeletes.
barmelyik problemara tud vki vmi megoldast, szivesen fogadom. koszonom!
ez a login kodja:
■ azt vettem eszre, hogy a szavazot blokkolja.
ez a login kodja:
<div id="login-out">
<form action="<? echo $_SERVER['PHP_SELF']; ?>" method="post">
<p>
<input type="hidden" name="submit" value="<? echo time(); ?>" />
<input type="text" id="username" name="username" class="signinbar-input" onfocus="handleQSFocus(this, evOnFocus)" onblur="handleQSFocus(this, evOnBlur)" value="Username" />
<input type="password" id="password" name="password" class="signinbar-input" onfocus="handleQSFocus(this, evOnFocus)" onblur="handleQSFocus(this, evOnBlur)" value="Password" />
<button class="submit-button-dark" type="submit"><span><em>SIGN IN</em></span></button>
<a href="JavaScript:alert('Coming%20Soon!')" class="input-link-dark"><span><em>SIGN UP</em></span></a>
</p>
</form>
</div>
<form action="<? echo $_SERVER['PHP_SELF']; ?>" onsubmit="return false" method="post">
<div class="poll">
<div class="pollq" id="pollq<? echo $pollid; ?>">
<?
$res = mysql_query("select * from poller where ID='$pollid'");
if($inf = mysql_fetch_array($res)){
echo "<p class=\"pollt\">".$inf["pollt"]."</p>";
$resOpt = mysql_query("select * from poll_opt where pollID='$pollid' order by pollOrder") or die(mysql_error());
while($infOpt = mysql_fetch_array($resOpt)){
if($infOpt["defaultCheck"])$check=" check";
else $check = "";
echo "<p class=\"pollOpt\"><input$check type=\"radio\" value=\"".$infOpt["ID"]."\" name=\"vote[".$inf["ID"]."]\" id=\"pollOpt".$infOpt["ID"]."\" />
<label for=\"pollOpt".$infOpt["ID"]."\" id=\"optLabel".$infOpt["ID"]."\">".$infOpt["optText"]."</label></p>"; }}
?>
<a href="javascript:void(0)" onclick="cmv(<? echo $pollid; ?>,document.forms[1])"><img src="images/kezdo/vote_button.png" alt="vote" class="pollimg" /></a>
</div>
<div class="pollwm" id="pollwm<? echo $pollid; ?>">
Please wait...
</div>
<div class="pr" id="pr<? echo $pollid; ?>">
<!-- ### --></div>
<script type="text/javascript">
// <![CDATA[
if(usecsrrcdvs){
var cv = Poll_Get_Cookie('poll_<? echo $pollid; ?>');
if(cv && cv.length>0)dprswovg(<? echo $pollid; ?>);
}
// ]]>
</script>
</div>
</form>
kitoroltem a form reszt a kodbol igy:
<div id="login-out">
<p>
<input type="hidden" name="submit" value="<? echo time(); ?>" />
<input type="text" id="username" name="username" class="signinbar-input" onfocus="handleQSFocus(this, evOnFocus)" onblur="handleQSFocus(this, evOnBlur)" value="Username" />
<input type="password" id="password" name="password" class="signinbar-input" onfocus="handleQSFocus(this, evOnFocus)" onblur="handleQSFocus(this, evOnBlur)" value="Password" />
<button class="submit-button-dark" type="submit"><span><em>SIGN IN</em></span></button>
<a href="JavaScript:alert('Coming%20Soon!')" class="input-link-dark"><span><em>SIGN UP</em></span></a>
</p>
</div>
__________________________________________________________________________________
egy masik kis problemam szinten a loginnal kapcsolatos, megpedig a SIGNUP gomb IE-ben szetesik es nem ertem miert mivel FF-ban, Operaban, Safariban tokeletes.
barmelyik problemara tud vki vmi megoldast, szivesen fogadom. koszonom!
ez a login kodja:
#login-out{
position: absolute;
float: left;
/*margin: 282px 0 0 10px;*/
top: 282px;
padding: 0px;
overflow: hidden;
width:440px;
text-align:left:
}
#login-in{
float: left;
margin: 282px 0 0 10px;
padding:0;
}
#login-in a {
font-family:"Consolas","Courier New",Courier,mono,serif;
color: #FF015B;
font-size: 0.7em;
}
#login-in b {
color: #000000;
font-size: 0.9em;
}
.input-link, .input-link-dark {
float: left;
display: block;
height: 22px;
background: transparent url(../images/button-left-light.png) no-repeat top left;
padding-left: 5px;
font-size: 0.75em;
color: #ffffff;
text-decoration: none;
line-height: 22px;
overflow: hidden;
margin: 0px 0px;
}
.input-link span, .input-link-dark span {
background: transparent url(../images/button-right-light.png) no-repeat top right;
padding: 0px 10px 0px 5px;
display: block;
position: relative;
color: #ffffff;
}
.input-link-dark {
background: transparent url(../images/button-left-dark.png) no-repeat top left;
float:right;
margin:1px 0 0 0;
}
.input-link-dark span {
background: transparent url(../images/button-right-dark.png) no-repeat top right;
}
a.input-link:hover, a.input-link-activated:hover, a.input-link-dark:hover {
background-position: bottom left;
text-decoration: none;
}
a.input-link:hover span, a.input-link-activated:hover span, a.input-link-dark:hover span {
background-position: right bottom;
color: #070707;
}
button.submit-button, button.submit-button-dark {
background: transparent;
border: none;
cursor: pointer;
height: 23px;
line-height: 22px;
overflow: visible;
padding: 0;
text-align: center;
white-space: nowrap;
width: auto;
}
button.submit-button span, button.submit-button em, button.submit-button-dark span, button.submit-button-dark em {
color: #FFFFFF;
display: block;
font-size: 0.93em;
height: 22px;
line-height: 22px;
margin: 0;
font-style: normal;
}
button.submit-button span, button.submit-button-dark span {
margin-top: -1px;
padding-left: 5px;
background: transparent url(../images/button-left-light.png) no-repeat top left;
}
button.submit-button em, button.submit-button-dark em {
padding-right: 20px;
padding-left: 13px;
background: transparent url(../images/button-right-light.png) no-repeat top right;
}
button.submit-button-dark span {
background-image: url(../images/button-left-dark.png);
padding-left: 5px;
}
button.submit-button-dark em {
background-image: url(../images/button-right-dark.png);
padding-right: 11px;
position: relative;
text-indent: -8px;
}
button.submit-button-dark:hover span {
background-position: bottom left; text-decoration: none;
}
button.submit-button-dark:hover span em {
background-position: bottom right;
color: #000000;
}
name
Belépésnél <form name="login" ...
szavazásnál pedig <form name="szavazas" ...
És nézd meg, hogy postolásnál mi van a POST tömbben.
Sajnos nem jo, nem mukodik a
Azt, hogy mi van a POST tombben, azt hogyan tudom lekerdezni?
print
<?php
print $_POST;
?>
Nézted már Firebug-gal, hogy mutat-e hibát? Ha van online elérhetőség vetnénk rá egy pillantást, hátha beugrik valami.
Nezted?
betettem a kodot a login
az online elerhetosege az oldalnak: WEBRADIO
koszi szepen.
print_r
a login es szavazo form ugyan