首页 > 解决方案 > 网站左侧有一个“1”。我不知道它是从哪里来的

问题描述

<form id="frmContact" method="POST" action="Pass2.php">
<p color="red" class="validate_msg"><font color="red">Please fix the errors below!</font></p>
<input type="hidden" name="id" value="<?php echo (isset($gresult) ? $gresult["id"] :  ''); ?>" />
<table>
  <tr>
    <td>
      <label for="regname">Applicant Name: </label><span class="val_regname"></span>
    </td>
    <td>
      <input type="text" name="name" 
        value="<?php echo (isset($gresult) ? $gresult["name"] :  ''); ?>" 
        id="name" class="txt-fld"/>
    </td>
  </tr>
  <tr>
    <td>
      <label for="prices">prices: </label><span class="val_prices"></span>
    </td>
    <td>
      <input type="text" name="prices" 
        value="<?php echo (isset($gresult) ? $gresult["prices"] :  ''); ?>" 
        id="prices" class="txt-fld"/>
    </td>
  </tr>
  <tr>
    <td>
      <label for="day">day #: </label><span class="val_day"></span>
    </td>
    <td>
      <input type="text" name="day" 
        value="<?php echo (isset($gresult) ? $gresult["day"] :  ''); ?>" 
        class="txt-fld"/>
    </td>
  </tr>
  <tr>
    <td>
      <label for="slot">slot : </label><span class="val_slot"></span>
    </td>
    <td>
      <input type="text" name="slot" 
        value="<?php echo (isset($gresult) ? $gresult["slot"] :  ''); ?>" 
        class="txt-fld"/>
    </td>
  </tr>
  <tr>
    <td>
      <label for="flag">Secondary School: </label><span class="val_flag"></span>
    </td>
    <td>
      <input type="text" name="flag" 
        value="<?php echo (isset($gresult) ? $gresult["flag"] :  ''); ?>" 
        class="txt-fld"/>
    </td>
  </tr>
</table>
<input type="hidden" name="action_type" value="<?php echo (isset($gresult) ? 'edit' :  'add');?>"/>
<div style="text-align: center; padding-top: 30px;">
  <input class="btn" type="submit" name="save" id="save" value="Save" />
  <input class="btn" type="submit" name="save" id="cancel" value="Cancel" 
    onclick=" return GotoHome();"/><br>
  <br>
</div>
</form>

网站左侧有一个“1”。我不知道它是从哪里来的。“1”仅在我更新时出现。谁能帮我找到“1”的来源?

标签: phphtmlmysql

解决方案


您可能1在 PHP 标记之外的代码中放置了一个位置,或者您已经echo输出了一个布尔值。首先通过您自己的代码搜索,否则在或随机调用1之前查找任何字符串。<?phpecho


推荐阅读