i've got this message
Notice: Undefined index: name in c:\program files\easyphp1-8\www\forum\kem askini.php on line 2
i've used this coding..
[code=php]<?php
$name = $_POST['name'];
$date = $_POST['date'];
$time = $_POST['time'];
$email = $_POST['email'];
$comment = $_POST['comment'];
$conn = mysql_connect(" localhost","roo t","");
if (!$conn)
{
die('Could not connect: ' . mysql_error());
}
$db=mysql_selec t_db("forum", $conn);
$query = "UPDATE ruang_forum
SET date='$date', time='$time', email='$email', comment='$comme nt'
WHERE name='$name'";
if($query)
{
echo '';
}
else
echo 'Error....';
$result = mysql_query($qu ery);
mysql_close($co nn);
?>
<html><head><ti tle>forum</title><body>
<p><a href="http://127.0.0.1/forum/main2.html">Hom e</a></p> <br>
</body></head></html>[/code]
[Please use CODE tags when posting source code. Thanks! --pbmods]
can anybody help me to solve this problem?? tq :)
Notice: Undefined index: name in c:\program files\easyphp1-8\www\forum\kem askini.php on line 2
i've used this coding..
[code=php]<?php
$name = $_POST['name'];
$date = $_POST['date'];
$time = $_POST['time'];
$email = $_POST['email'];
$comment = $_POST['comment'];
$conn = mysql_connect(" localhost","roo t","");
if (!$conn)
{
die('Could not connect: ' . mysql_error());
}
$db=mysql_selec t_db("forum", $conn);
$query = "UPDATE ruang_forum
SET date='$date', time='$time', email='$email', comment='$comme nt'
WHERE name='$name'";
if($query)
{
echo '';
}
else
echo 'Error....';
$result = mysql_query($qu ery);
mysql_close($co nn);
?>
<html><head><ti tle>forum</title><body>
<p><a href="http://127.0.0.1/forum/main2.html">Hom e</a></p> <br>
</body></head></html>[/code]
[Please use CODE tags when posting source code. Thanks! --pbmods]
can anybody help me to solve this problem?? tq :)
Comment