Do you have a question? Post it now! No Registration Necessary. Now with pictures!
September 6, 2007, 2:16 pm
rate this thread
I'm new to php(and HTML) and I'm trying to write some php code so that
insert data into a mysql database using html forms.
I've got two text forms and a submit button. When entering data and
selecting 'submit' a new record in my database is created. So far so
good... But when I enter data in only one content and hit the enter
key a new record is created with one empty field. And that something
don't want to happen.
Is there a way to block the text-forms so only a record is added when
I hit the 'submit' button?