
21-12-2005, 20:40
|
 |
|
|
חבר מתאריך: 02.10.05
הודעות: 2,355
|
|
|
המפרש של php מציג Eror כזה: unexpected $end
בעיה מוזרה מאוד, נראה לי באג במפרש של php, הוא כותב לי ככה:
Parse error: parse error, unexpected $end in C:\apache\Apache2\htdocs\login.php on line 131
כשהשורה 131 היא השורה האחרונה, הנה המבנה של הקוד:
קוד PHP:
<?php //------------------------------------------------ //the code... //------------------------------------------------ ?> <!doctype html public "-//W3C//DTD HTML 4.01//EN"> <html> <head> <title>Untitled</title> <meta http-equiv="generator" content="PHP Designer 2005" /> </head> <body> <form action="login.php" method="POST" enctype="application/x-www-form-urlencoded" name="log"> <center> <table> <tr> <?php //---------------------------- //the continuation of the code //---------------------------- ?> <td><input type="text" name="claint" style='direction:rtl;' /></td> <td><font size="3">שם משתמש</font></td> </tr> <tr> <td><input type="password" name="pass" style='direction:rtl;' /></td> <td><font size="3">סיסמא</font></td> </tr> <tr> <td> <input type="checkbox" value="cookie" /> <font size="3">השתמש בעוגיות</font> </td> <td> <input type="submit" value="שלח" /> </td> </tr> </table>
<center> </form>
</body> </html>
|