<BLOCKQUOTE><font size="1" face="Verdana, Arial">code/font><HR><pre>

if($submit) {

$dbcnx = @mysql_connect("localhost", "user", "password");

$sql = "INSERT INTO Replies SET " .
"ReplyText='$ReplyText', " .


if (mysql_query($sql)) {

echo("&lt;P&gt;Thank you for your reply...&lt;/P&gt;");

} else {

echo("&lt;P&gt;Uh oh! - " .

mysql_error() . "&lt;/P&gt;"); }


&lt;?php else: // Allow the user to enter a new author?&gt;

&lt;FORM ACTION="&lt;?php echo($PHP_SELF); ?&gt;" METHOD=POST&gt;

&lt;P&gt;Reply Text&lt;BR&gt;
&lt;TEXTAREA NAME="ReplyText" ROWS=15 COLS=45 WRAP&gt;&lt;/TEXTAREA&gt;
&lt;P&gt;&lt;INPUT TYPE=SUBMIT NAME="submit" VALUE="SUBMIT"&gt;&lt;/P&gt;

&lt;?php endif; ?&gt;

What's wrong? It just won't insert it at all I've looked over it a million times too

WebDevHQ.com - The Web Developer Headquarters! HUNDREDS of articles, reviews tools and more!

[This message has been edited by Matt Kaufman (edited August 19, 2000).]