こんにちは、HTMLドキュメントで、divの1つにいくつかを含めていますが、phpコードをプレーンテキストとして出力するだけで、phpタグを無視します。これが私がそれをコーディングする方法です。
</form> //just some html tags right before the php tags
<br/>
<br/>
<p id="hint"></p>
<?php // the begining of the php tags
form();
function form(){
print "<form method='post' action='$_SERVER[PHP_SELF]'>";
print"<input type='text' name='species'/>";
print"<input type='submit' name='submit'/>";
print"</form>";
}
echo '<div id='language_information'>';
?>
</div>
<div style ="display:none;"id="about" title="How it works">'
クロムの検査要素が私に与えるものは次のとおりです。コメントとプレーンテキストだけです
<p id="hint"></p>
<!--?php
form();
function form(){
print "<form method='post' action='$_SERVER[PHP_SELF]'-->
";
print"
<input type="text" name="species"></input>
";
print"
<input type="submit" name="submit"></input>