我在第 52、53、54、55 行不断收到未定义的变量,但不知道如何修复它。任何帮助将不胜感激。
<table>
<form name="emailMe" id="emailMe" action="contactMe.php" method="post">
<tr><th><p>First Name </p></th> <td><p><input type="text" name="firstName" maxlength="10"value="<?php print($fName); ?>" /></p></td></tr>
<tr><th><p>Last Name </p></th> <td><p><input type="text" name="lastName" maxlength="25"value="<?php print($lName); ?>" /></p></td></tr>
<tr><th><p>Email </p></th> <td><p><input type="text" name="email" maxlength="50"value="<?php print($email); ?>" /></p></td></tr>
<tr><th><p>Message </p></th> <td><p><input type="text" name="message" maxlength="250"value="<?php print($message); ?>" /></p></td></tr>
</table>
<p><input type="submit" name="submit" value="Submit" />
<input type="reset" value="Clear Form" /></p>
</form>
<?php
if(isset($_POST["submit"])){
$errorCount = 0;
$fName = $_POST['firstName'];
$lName = $_POST['lastName'];
$email = $_POST['email'];
$message = $_POST['message'];