Okay this is an update on the problem. The good news is that I no longer get any errors. However, the script just goes ahead and executes the sql statement but without taking the form values into account.
I will put this on my scratch pad, if anyone wants to take a look...... I would appreciate this.
Thanks,
Rachel