Hi all,

I've done this before but for the life of me can't remember how i did it or find the script (it was at least 5yrs ago and I've hardly touched code since then). I currently have the validation and database insertion on the same page - on a different page from the form. They both work separately with no problems but the only problem I have is that when I enter something that isn't correct it displays the error but the script doesn't stop it from sending data to the database. I was just wondering what I need to do to ensure that this happens?

Newbie....for the 2nd time