PHP -- 非语法错误,第 58 行意外的“echo”(T_ECHO)


PHP -- Unsyntax error, unexpected 'echo' (T_ECHO) on line 58

  else if (isset($id) && isset($street_address) && isset($price)  ){
  echo '<p>Are you sure you want to delete the following product?</p>';
  echo '<p><strong>Street Address: </strong>' . $street_address '<br/><strong>Price: </strong>' . $price .;
  //  '<br /><strong>Price: </strong>' . $pPrice . '</p>';
   echo '<form method="post" action="removehome.php">'; <-- (line 58)

我尝试在上面的行中添加一个结束分号,但最终得到"意外的";"错误。我该如何解决这个问题?

问题出在这里</strong>' . $price .; .您在$price后使用额外的.

else if(isset($id) && isset($street_address) && isset($price)){
  echo '<p>Are you sure you want to delete the following product?</p>';
  echo '<p><strong>Street Address: </strong>'.$street_address.'<br/><strong>Price: </strong>'.$price;  
  echo '<form method="post" action="removehome.php">';