请帮助诊断我的语法错误在行标记这里为**?></th>**
,但当然在我的实际代码是?></th>
。所有变量在此代码之前都已正确定义,但这里没有显示。谢谢你的帮助。
<table width="600" border="0" align="center">
<tr>
<th scope="row"><h1><?php
if (isset($_POST['dogTitle']))
{
echo $_POST['dogTitle'];
}
?></h1></th>
</tr>
<tr>
<th scope="row"><?php
if (isset($_POST['dogDescription']))
{
echo $_POST['dogDescription'];
?></th>
</tr>
<tr>
<th scope="row"><?php
if (isset($_POST['vet']))
{
echo $_POST['vet'];
?></th>
</tr>
<tr>
<th scope="row"> <?php
if (isset($_POST['vetDescription']))
{
echo $_POST['vetDescription'];
?></th>
</tr>
<tr>
<th scope="row"><?php
if (isset($_POST['apply_to_email']))
{
echo $_POST['apply_to_email'];
?></th>
</tr>
<tr>
<th scope="row"><?php
if (isset($_POST['apply_to_url']))
{
echo $_POST['apply_to_url'];
?></th>
</tr>
<tr>
<th scope="row"><?php
if (isset($_POST['vetCity']))
{
echo $_POST['vetCity'];
?></th>
</tr>
<tr>
<th scope="row"><?php
if (isset($_POST['vetState']))
{
echo $_POST['vetState'];
?></th>
</tr>
<tr>
<th scope="row"><?php
if (isset($_POST['vetZip']))
{
echo $_POST['vetZip'];
?></th>
</tr>
<tr>
<th scope="row"><?php
if (isset($_POST['FtPTCHrly']))
{
echo $_POST['FtPTCHrly'];
**?></th>**
</tr>
</table>
您忘记在这段代码之后完成If语句
<th scope="row"><?php
if (isset($_POST['dogDescription']))
{
echo $_POST['dogDescription'];
?></th>
用这个代替
<th scope="row"><?php
if (isset($_POST['dogDescription']))
{
echo $_POST['dogDescription'];
} // You missed this
?></th>
在你的代码中有很多地方是错误的,所以,纠正它。