מה הבעיה בקוד הבא?
ציטוט:
<?php
mysql_connect("localhost","root","") or die("Error!");
mysql_select_db("try") or die("Error");
mysql_query("UPDATE text SET text='$_POST[text]'");
?>
<html dir="rtl">
<head><title>Main Page</title></head>
<body>
<center><b>Main Page</b></center>
<method="post">
<textarea cols=50 rows=10 name="text"></textarea><br />
<input type="submit" name="submit" value="עדכן">
</form>
<META HTTP-EQUIV="Refresh" CONTENT="2; URL=/next/admin/">
</body>
</html>
|
זה הארור שמוצג לי:
Notice: Undefined index: text in c:\program files\easyphp1-8\www\next\admin\main.php on line 5