<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/