This topic is locked

Forcing empty strings to be input as null or some other default value

4/29/2015 7:30:57 PM
PHPRunner General questions
B
bioman author

Hi,

Is it possible to make it so that if a user of my application does not fill in a field, then it will still submit a "NULL" value or some other default value? I do not want any empty strings. I also do not want users to see "NULL" or the default value in the PHPRunner application when they are inputting the data because I think this might confuse them. If they delete the "NULL" or other default value, it will mess up other aspects of the programming downstream. The application I am making is for teachers and will involve them inputting multiple choice quiz questions, but sometimes they will not use all of the answer choices. I'd like them to see these as blank, but I'd like the database to store a value. How can this be done in PHPRunner? Thanks,

Brett