السلام عليكم ورحمة الله وبركاته
أنا لسه جديد على php وحاولت أعمل سكربت بسيط جدا ولكن يظهر لي الخطأ التالي
طبعا هما ملفين الأول form.htm وهذا محتواه
الملف الثاني c.php ويحتوي التاليكود:<html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- body { background-color: #F0EFD9; } --> </style></head> <body> <form action="c.php" name="form" id="form"> <div align="center"> <table width="80%" border="2" align="center"> <tr bordercolor="#000000"> <th scope="col"><div align="center">Name</div></th> <th scope="col"><input name="Name" type="text" id="Name"></th> </tr> <tr bordercolor="#000000"> <td><div align="center">Phone </div></td> <td><div align="center"> <input name="Phone" type="text" id="Phone"> </div></td> </tr> <tr bordercolor="#000000"> <td><div align="center">Email</div></td> <td><div align="center"> <input name="Email" type="text" id="Email"> </div></td> </tr> <tr bordercolor="#000000"> <td><div align="center">Fax</div></td> <td><div align="center"> <input name="Fax" type="text" id="Fax"> </div></td> </tr> </table> <p> <input type="submit" name="Submit" value="Submit"> <input type="reset" name="Submit2" value="Reset"> </p> </div> </form> </body> </html>
كود:<? echo "$Name,$Phone,$Fax$,Email"; ?>
والخطأ كما هو موضح
كود:Notice: Undefined variable: Name in c:\inetpub\wwwroot\test\first\c.php on line 3 Notice: Undefined variable: Phone in c:\inetpub\wwwroot\test\first\c.php on line 3 Notice: Undefined variable: Fax in c:\inetpub\wwwroot\test\first\c.php on line 3 ,,$,Email


رد مع اقتباس
