Hi and thanks for the reply. I think I understand what you're saying but I'm just starting out with scripting.
If I'm relying on register globals being turned on and they're not would this work? Here's an example of a simple script which fails on me and won't write to the database. It simply returns the form without the input values:
<?
$DBhost = "mysql ip here";
$DBuser = "user here";
$DBpass = "password here";
$DBName = "dbname here";
$table = "information";
mysql_connect($DBhost,$DBuser,$DBpass) or die("Unable to connect to database");
@mysql_select_db("$DBName") or die("Unable to select
database $DBName");
$sqlquery = "INSERT INTO $table
VALUES('$id','$name','$email','$opinion')";
$results = mysql_query($sqlquery);
mysql_close();
print "<HTML><TITLE> PHP and MySQL </TITLE><BODY
BGCOLOR=\"#FFFFFF\"><center><table border=\"0\"
width=\"500\"><tr><td>";
print "<p><font face=\"verdana\" size=\"+0\"> <center>You
Just Entered This Information Into the
Database<p><blockquote>";
print "Name : $name<p>E-Mail : $email<p>Opinion :
$opinion</blockquote></td></tr></table>
</center></BODY></HTML>";
?>
Thanks,
rizzo65