我已经在免费的主机服务器http://kotsarikos.bugs3.com/calen.html中制作了一个表格并且工作正常。后来,我将相同的文件上传到我的服务器,我看到了这个http://www.oedd.gr/supportoedd/calen.html。两台服务器都有php 5.2!你觉得哪里出了问题??
表格的代码:
<form method="POST" action='<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>' id="form1">
<fieldset class="fiel">
<legend><b><span class="words">Στοιχεία Παραγγελίας</span></b></legend>
<table border="0">
<tr><td><b><span class="words"> Όνομα: </span></b></td><td><input type="text" size="30" name="fName" id="fName" value="<?php echo $fName;?>"><span class="words"> *</span></td><td><span class="error"> <?php echo $fNameErr;?></span></td></tr>
<tr><td><b><span class="words">Επώνυμο:</span></b></td><td> <input type="text" size="30" name="lName" id="lName" value="<?php echo $lName;?>"> <span class="words"> *</span></td><td><span class="error"> <?php echo $lNameErr;?></span></td></tr>
<tr><td><b><span class="words">Διεύθυνση:</span></b></td><td> <input type="text" size="30" name="address" id="address" value="<?php echo $address;?>"> <span class="words"> *</span></td><td><span class="error"> <?php echo $addressErr;?></span></td></tr>
<tr><td><b><span class="words">Δήμος:</span></b></td><td> <input type="text" size="30" name="dimos" id="dimos" value="<?php echo $dimos;?>"> <span class="words"> *</span></td><td><span class="error"> <?php echo $dimosErr;?></span></td></tr>
<tr><td><b><span class="words">Νομός:</span></b></td><td> <input type="text" size="30" name="nomos" id="nomos" value="<?php echo $nomos;?>"> <span class="words"> *</span></td><td><span class="error"> <?php echo $nomosErr;?></span></td></tr>
<tr><td><b><span class="words"> Τ.Κ.:</span> </b></td><td> <input type="text" size="30" name="tk" id="tk" value="<?php echo $tk;?>"> <span class="words"> *</span></td><td><span class="error"> <?php echo $tkErr;?></span></td></tr>
<tr><td><b><span class="words">Ποσότητα:</span></b></td><td> <input type="text" size="30" name="cap" id="cap" value="<?php echo $cap;?>"> <span class="words"> *</span></td><td><span class="error"> <?php echo $capErr;?></span></td></tr>
<tr><td><b><span class="words">Τηλέφωνο:</span></b></td><td> <input type="text" size="30" name="tel" id="tel" value="<?php echo $tel;?>"> <span class="words"> *</span></td><td><span class="error"> <?php echo $telErr;?></span></td></tr>
<tr><td><b><span class="words">E-mail:</span></b></td><td> <input type="text" size="30" name="email" id="email" value="<?php echo $email;?>"> <span class="words"> *</span></td><td><span class="error"> <?php echo $emailErr;?></span></td></tr>
<tr><td><b><span class="words">Παρατηρήσεις:</span></b></td><td> <textarea rows="6" cols="40" name="comments" id="comments" wrap="hard" value="<?php echo $comments;?>"></textarea></td></tr>
<tr><td></td><td id="but"><input type="submit" value="Υποβολή" ></td></tr>
<tr><span class="words">* Πεδία που απαιτούνται</span></tr>
</table>
</fieldset>
</form>
所有的html代码都在评论中!