How can I allow blank fields in a Dynamic form?

I currently have a record insertion form which connects to my MySQL database on a remote server.

The fields and columns are viewable in this insertion form. I have selected them to display mostly as text fields and also as menu items. So far so good.

During testing, I have noticed that if some of the fields in the form are left blank when the form is submitted - I am rediredted to a blank white page with the message Column '(column name)' cannot be null.

I wish to allow some columns to be blank. Is there a way to do this?


AdamTrying to learn phpAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Hi ayounis

This is not a problem with dreamweaver - this is a setting you must change in the MySQL database

When you create the table, defining NOT NULL will mean that the database will chuck an error if you try to put nothing in the field.

If you are using phpMyAdmin or something similar, you will see a drop-down box with "NULL" or "NOT NULL" as options (when creating or editing a table). Set this to "NULL" and it will allow NULL as a value (i.e. no value)

If you need specific help changing this property in your table, please give specific info about what system you are using.

bc :-)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Dreamweaver

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.