quote:
Originally posted by r3m!xXx
should have pointed it out clearlier, my problem is the error stuff. how do i prevent the script from writing unfilled stuff in my database?
That is what matty's code does, it checks if the textbox is empty.
You could also/alternatively add a check in your PHP code:
code:
if ($_POST['t1'] == "") {
// error
} else {
// continue
}