View Single Post
ישן 01-03-06, 16:03   # 1
Cool_DuDu
חבר פורום
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
גיל: 35
הודעות: 183

Cool_DuDu לא מחובר  

מה הבעיה עם הקוד?

מה הבעיה בקוד הבא?

ציטוט:
<?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