Hi,
Eventually you will be working ona server which doesnot have the globals switched to on (I know.. It happened to me..) and trus me.. It is no joke have to re-write your code then!
So.. Write as if it was switched of.. It serves you better in the long run.
OK. Enough advice on coding. Let's solve your problem.
Have you made the modifications I suggested? Then, also change:
$result = mysql_query($sql);
into:
$result = mysql_query($sql) or die("An error occured when inserting:" .mysql_error());
Please do this, try to run it, and paste the code you are using.
(PLEASE between [ p h p ]... [ / p h p ] brackets, lose the spaces, and you will get the nicely coloror code)
Also, post the output the page gives you. After that I think we have the answer to your problem.
I am off to the shop right now, but I will have a look in 45 min or so.
J.