2013-08-05 3 views
0

CSS 템플릿을 사용하여 html을 다운로드했습니다. 로그인 폼에서 (여기서 처음에 나는 다른 영역에 버튼 같은 HTML 코드를 복사하고 나는 그것을 클릭하면 작동하지 않습니다. 파란색 버튼 CSS를 작동 두었다. CSS

.blue-button { 
    display: inline-block; 
    vertical-align: top; 
    border: solid 1px #6d8794; 
    position: relative; 
    border: solid 1px #6d8794; 
    -moz-border-radius: 4px; 
    -webkit-border-radius: 4px; 
    border-radius: 4px; 
    behavior: url(css/PIE.php); 
} 

.blue-button span { 
    display: inline-block; 
    vertical-align: top; 
    border: solid 1px #6d8794; 
    position: relative; 
    border: solid 1px #a6bcc8; 
    background: #85a3b3 url("../images/blue-button-stripes.gif") repeat-x left top; 
    color: #fff; 
    line-height: 26px; 
    -moz-border-radius: 3px; 
    -webkit-border-radius: 3px; 
    border-radius: 3px; 
    behavior: url(css/PIE.php); 
} 

.blue-button a, .blue-button input { 
    border: 0px; 
    padding: 0px 15px; 
    height: 26px; 
    color: #fff; 
    font-weight: bold; 
    font-size: 13px; 
    font-family: Helvetica; 
    text-shadow: 0px 1px #687b85; 
    text-transform: uppercase; 
    text-decoration: none; 
    cursor: pointer; 
    background: none; 
} 

.blue-button:hover a, .blue-button:hover input { 
    text-decoration: underline; 
} 

PHP

public function ShowLoginPanel() 
{  

$this->LoginContent= 
' <div class="column-1-3"> 
     <div class="white-box"> 

      <div class="box-content fixed-height"> 
       <form action="" method="post" class="contact-form"> 
        <div> 
          <span class="blue-button"><span><input type="submit" value="SEND &raquo;" /></span></span> 
         </div> 
         <input type="hidden" name="val" value="checkin"> 
        </div> 
       </form> 
      </div> 
     </div> 
    </div><!--/end .column-1-3 --> ';  

} 

I 버튼을 클릭하면, $ _POST [ "발은"]로 설정되지만, I는 다른 유닛 (예를 registration.php)

 <div class="icon"><img src="images/register.png" alt="" /></div> 
    <input type="hidden" name="val" value="registration">';  
가 동일한 코드를 사용할 때

$ _POST [ "val"]이 (가) 설정되지 않았으므로 아무 것도하지 않습니다. loggin에있는 버튼 작동을 div에 왜

당신은 요약을 만들기 위해 여기 http://tinyurl.com/pkw5wly에서 내 페이지에 액세스 할 수 있습니다

, 내 질문이지만 등록 사업부에서는 등록 버튼이 아닌

+1

이것은 CSS 문제가 아닙니다. 귀하의'

'에는 게시 된 코드에'action'이 없습니다. 'action'은 어디에 설정되어 있습니까? – ken

+0

페이지에 액세스 할 수 있습니다. – user558126

+1

@LoganMurphy'post'가 방법이 될 것입니다. 'action'은 폼이 적중되기를 원하는 페이지입니다. –

답변

0

당신은 $ _POST에 액세스 할 수 없습니다 [ "발"] 당신이 제출하는 형태가 methodpost

<form method="post" action="handler.php"> 
    <input name="val"/> 
    <input type="submit"/> 
</form> 

의하지 않는 한 그런 다음, 그렇지 않으면 $ _POST 변수

echo $_POST["val"]; 

을 수행 할 수 있습니다 액세스 할 수 있습니다 method="get"을 설정하거나 (가능성이 높은 메소드를 지정하지 말고) $ _GET 변수를 사용하십시오.

echo $_GET["val"]; 
+0

고맙습니다. 해결책입니다! – user558126

1

작동하지 않습니다 어떤 form에 있더라도 아무 것도 클릭하지 않습니다.

해결책 : 등록 입력 주위에 form을 넣으십시오.

+0

대단히 감사합니다. 해결책입니다! – user558126

관련 문제