I am writing a forum site and this is an error message I randomly ran into.
I have used this code structure before but never ran into this problem.
"Fatal error: Call to undefined function form() in /home2/fellowes/public_html/comment.php on line 14"
<?php
session_start();
$tbl_name="???";
$userid=$_SESSION[userid'];
$username=$_SESSION['username'];
$comment=form($_POST['txtComment']);
This "$comment=form($_POST);" is line 14 in dreamweaver
$profileid=$_GET['user_id'];
mysql_query("INSERT INTO $tbl_name (userid, posterid, postername, pc_comment) VALUES ('$profileid', '$userid', '$username', '$comment')") or die(mysql_error());
mysql_close();
?>
I have used this code before with no problem...
<form method="post" action=<?php echo "comment.php?user_id=$profileid "?> >
<div align="center">
<table width="100%" height="100%" border="0" cellspacing="0">
<tr>
<td><div align="center">
<textarea name="txtComment" rows="5" ></textarea>
</div></td>
</tr>
<tr>
<td height="23"><div align="right"><input value="submit" type="submit" name="subSubmit" /></div></td>
</tr>
</table>
</div>
</form>
This is the form that the $_POST is coming from