2014-02-12 2 views
0

정상적인 html 페이지에서 작동하는 로그인 양식을 만들었습니다. 하지만 워드 프레스에 넣을 때 제출 버튼이 작동하지 않습니다. 여기에 내 코드가 있습니다. 내가 말했듯이, 코드를 dreamweaver에 넣고 브라우저에서 열면 작동합니다. 잡동사니 ReferenceError : sendform이 정의되지 않았습니다.wordpress sendform doesnt work

감사합니다. 빠른 도움에 감사드립니다!

<div class="client-area"><form action="https://extranet.proden.com/Proden/Client-Area/LogSys/Log.asp" method="POST" name="LoginClient"> 
<table> 
<tbody> 
<tr> 
<td>Username:</td> 
<td><input tabindex="1" onkeypress="if (event.keyCode == 13) {this.form.submit();}" type="text" name="Username" size="16" /></td> 
<td rowspan="2"><a href="javascript:sendform()"><img style="box-shadow: none;" title="Submit login" alt="Submit login" src="http://altitudeconseil.ca/clients/proden/wp-content/uploads/2013/01/login_submit.png" width="61" height="50" /> 
</a></td> 
</tr> 
<tr> 
<td>Password:</td> 
<td><input tabindex="2" onkeypress="if (event.keyCode == 13) {this.form.submit();}" type="password" name="Password" size="16" /></td> 
</tr> 
<tr> 
<td colspan="3"><input type="hidden" name="autoLoginHidden" value="N" /> 
<p style="text-align: center; font-size: small;"><input id="Checkbox1" tabindex="3" type="checkbox" name="autoLogin" value="true" />Remember me (cookies must be enabled).</p> 
<input type="hidden" name="lang" value="English" /></td> 
</tr> 
</tbody> 
</table> 
</form> 
<p style="font-size: small;">Please enter your username and password. If you do not have access, please <a href="mailto:[email protected]">contact us</a> and a profile will be created for you.</p> 

</div> 
<script type="text/javascript"> 
function sendform() { 
      if(document.LoginClient.autoLogin.checked) 
       document.LoginClient.autoLoginHidden.value = "Y"; 
      else 
       document.LoginClient.autoLoginHidden.value = "N";   
      document.LoginClient.submit() 
     } 
     //alert('For testing purposes the input fields are filled already.') 

</script> 

<script type="text/javascript" src="cookies.js"></script><script type="text/javascript"> 
var cookie = readCookie("ZC_login"); 
     if(cookie) 
     { 
      //window.status = 'username is : ' + document.LoginClient.Username.value + ' should be : ' + cookie; 
      document.LoginClient.Username.value = cookie; 
      document.LoginClient.Password.focus(); 

      var password = readCookie("ZC_password"); 
      var autoLogin = readCookie("ZC_autologin"); 
      if(autoLogin &#038;&#038; autoLogin == "Y") 
      {    
       document.LoginClient.autoLogin.checked = true; 
       document.LoginClient.Password.value = password; 
       sendform(); 
      } 
     } else { 
      document.LoginClient.Username.focus(); 
     } 

</script> 

답변

0

Wordpress phpmailer 또는 Wordpress 웹 사이트의 양식을 문의 양식을 통해 전송하는 것은 몇 가지 이유로 인해 사망 할 수 있습니다. 가장 일반적인.

  • phpmailer가 호스트에서 사용할 수 없거나 php 버전을 사용하고 있지 않거나 서버에서 이상한 점이 있습니다. 호스트 공급자에게 문의하십시오.

  • 또한 SMTP하는 메일 옵션을 전환하여 나 또한 테마 될 수있는 (phpmailer 에 문제 방지 성공을 청소함으로써 문제에서 그 일을 도울 수 있습니다 플러그인의 톤이있다 관련뿐만 아니라)

체크 아웃 일부 최고 등급 WP 메일러 플러그인 : 일부 잘 검토 한 플러그인이 작동하지 않는 경우 http://wordpress.org/plugins/tags/phpmailer

- 호스트에게 연락하여 그들이해야 가능하게 할 수 있어야한다.

추가 자료 :