php - 网站左侧有一个 "1"。我不知道它从哪里来

标签 php html mysql

<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”来自哪里?

最佳答案

您可能输入了 1代码中 PHP 标记之外的某个位置,或者您有 echo输出一个 bool 值。首先在您自己的代码中搜索 1 ,否则查找 <?php 之前的任何字符串或随机echo来电。

关于php - 网站左侧有一个 "1"。我不知道它从哪里来,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54779638/

相关文章:

php - Crypt 函数根据 PHP 版本输出两个不同的值

javascript - 当我选择另一个选择标签的某个选项时,如何自动更改选择标签选项的值列表 HTML <select>

php - 在php中将马拉地语数据从excelsheet导入到mysql

php - 在 raspbian 8 (raspberry b+) 上使用 composer 安装 october cms

php - 向 Pear Mail 添加内容类型

php - Apache 和 PHP 的选择性文件下载权限

php - 如何将 Unicode 转义序列(如 "\u00ed")解码为正确的 UTF-8 编码字符?

javascript - 如何使用 javascript 和 html 创建搜索栏

html - 如何使用 slim 语法转义 HTML 内容中的方括号?

mysql date_format 无法解析 20-may-2013