带有onclick事件的wordpre中的问题,显示未捕获的参考错误

问题描述

我在网站上进行了调查(wordpress,天顶模板),并且提交表单时遇到问题。我收到一条错误消息:“未捕获的参考错误”。有人可以帮我解决这个问题吗?

Screenshot from the moment y click SEND button

调查地址为here

<?PHP  
/* 
Template Name: Cuestionario OQ ingles
*/  
get_header(); 
global $PAGE_ID;
$options = get_option('infinite_options');
?>

<?PHP while ( have_posts() ) : the_post(); 
$featured_image_array = wp_get_attachment_image_src( get_post_thumbnail_id(),'single-post-thumbnail' ); 
$featured_image = $featured_image_array[0];
$sidebar = get_post_meta(get_the_ID(),SYstem_VAR_PREFIX."select_sidebar",true);

if ($sidebar)
{
?> 
    <div id="inner-content">
<?PHP
}
else
{
?>
    <div class="one">
<?PHP
}

if ($featured_image != "")
{
?> 
<p><img src="<?PHP echo $featured_image; ?>" alt=""></p>
<?PHP
}
the_content();
?>
<!--Inicio todo el documento-->
<div id="contenedor">
<!--Inicio del Contenido-->

<div id="contenido">
  <table border="0" align="center" cellpadding="0" cellspacing="0" id="textocontenido">
    <tr>
      <td >&nbsp;</td>
      </tr>
    <tr>
      <td >
 <center>     
      
      <?PHP
if (!$HTTP_POST_VARS){ } 
?>


<form action="<?PHP bloginfo('template_url'); ?>/procesa_oq_ingles.PHP" method=post> 
<table  border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td height="7" colspan="6" align="center" bgcolor="#CCCCCC">&nbsp;</td>
        </tr>
        <tr>
          <td colspan="6" align="center">&nbsp;</td>
        </tr>
        <tr>
          <td height="14" colspan="6" align="center">Outcomes Questionnaire (OQ-45.2)</td>
        </tr>
        <tr>
          <td height="7" colspan="6"><hr /></td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td colspan="4">&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td align="right">Name:</td>
          <td colspan="4"><label>
            <input type="text" name="nombre" id="textfield">
          </label></td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td align="right">Age:</td>
          <td colspan="4"><input type="text" name="edad" id="textfield2"></td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td align="right">E-Mail:</td>
          <td colspan="4"><input type="text" name="correo" id="textfield3"></td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td align="right">&nbsp;</td>
          <td colspan="4">&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td colspan="6">Instructions: Looking back over the last week,including today,help us understand how you have been feeling.</td>
        </tr>
        <tr>
          <td align="right">&nbsp;</td>
          <td colspan="4">&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td width="131" height="23" align="center">Never</td>
          <td width="87" align="center">Rarely</td>
          <td width="86" align="center">Sometimes</td>
          <td width="97" align="center">Frequently</td>
          <td width="121" align="center">Almost Always</td>
        </tr>


<!-- FirsT QUESTION -->

        <tr>
          <td width="382">1.  I get along well with others.</td>
          <td colspan="5" align="center"><table width="430" height="25" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td width="86" align="center"><label>
                <input type="radio" name="RadioGroup1" value="4" id="RadioGroup1_0" />
              </label></td>
              <td width="86" align="center"><label>
                <input type="radio" name="RadioGroup1" value="3" id="RadioGroup1_1" />
              </label></td>
              <td width="86" align="center"><label>
                <input type="radio" name="RadioGroup1" value="2" id="RadioGroup1_2" />
              </label></td>
              <td width="86" align="center"><label>
                <input type="radio" name="RadioGroup1" value="1" id="RadioGroup1_3" />
              </label></td>
              <td width="86" align="center"><label>
                <input type="radio" name="RadioGroup1" value="0" id="RadioGroup1_4" />
              </label></td>
            </tr>
          </table></td>
        </tr>
        <tr>
          <td colspan="6"><hr /></td>
        </tr>
        
<!-- LAST QUESTION -->

        <tr>
          <td height="12" valign="top" class="Estilo4">45.  I have headaches.</td>
          <td colspan="5" align="center"><table width="430" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td width="86" align="center"><label>
                <input type="radio" name="RadioGroup45" value="0" id="RadioGroup45_0" />
              </label></td>
              <td width="86" align="center"><label>
                <input type="radio" name="RadioGroup45" value="1" id="RadioGroup45_1" />
              </label></td>
              <td width="86" align="center"><label>
                <input type="radio" name="RadioGroup45" value="2" id="RadioGroup45_2" />
              </label></td>
              <td width="86" align="center"><label>
                <input type="radio" name="RadioGroup45" value="3" id="RadioGroup45_3" />
              </label></td>
              <td width="86" align="center"><label>
                <input type="radio" name="RadioGroup45" value="4" id="RadioGroup45_4" />
              </label></td>
            </tr>
          </table></td>
        </tr>
        <tr>
          <td height="2" colspan="6" valign="top" class="Estilo4"><hr /></td>
        </tr>
        <tr>
          <td colspan="6" valign="top" class="Estilo4">&nbsp;</td>
        </tr>
        <tr>
          <td colspan="6" align="center"><input type=submit value="Send" onClick="Validamail(correo)"></td>
        </tr>
        <tr>
          <td colspan="6" align="center">&nbsp;</td>
        </tr>
      </table>
</form>
   
      
     </center> </td>
      </tr>
    <tr>
      <td>&nbsp;</td>
      </tr>
  </table>
</div>

<!--Fin del Contenido-->

</div>

<!--Fin todo el documento-->
    </div><!--END ONE-->
<?PHP
if (get_post_meta(get_the_ID(),SYstem_VAR_PREFIX."add_class_title",true) != "no")
{
?>
<script type='text/javascript'>
jQuery(document).ready(function($){
    $(".one :header,#inner-content :header").addClass("title");
    $(".team-member-info :header,.no_title").removeClass("title");
    $(".pricing-info :header,.no_title").removeClass("title");
})    
    
</script>
<?PHP
} 

if ($sidebar) get_sidebar(); 

?>

<?PHP endwhile; // end of the loop. ?> 
        
<?PHP get_footer(); ?>
            

这是我的代码应该进入procesa_oq_ingles.PHP,但这不会发生,因为控制台中出现错误

我尝试清除onclick事件,但此后没有任何变化。也许有人知道我该怎么做才能解决这个问题?

谢谢...

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)