many thanks for that Kevin 🙂
I cant quite get the script to completely work though
QUOTE]$query = "insert into $table (index_number,name) values (1,'$_POST['user']')"; [/QUOTE]
The value 1 gets entered into the index_number column ok, but the $_POST['user'] gets entered into the name column as blanks.
I have that column set to varchar (have tried a few others).
I added a print $_POST['user']; after the mysql_query just to prove that it is picking up the input from the form ok, and it is.
Any ideas?
Thanks.