jacko_162 Posted March 25, 2010 Share Posted March 25, 2010 I have a small form that uploads 14 pieces of data (mostly integer) majority of fields are set as "int(10) or decimal(2,1)" in the database. when the form is submitted if the user leaves the field blank it still adds the following to the database; "0.0" which is fine but sometimes my result migh indeed need to be inputted as "0.0" my problem is this; i want to show a certain icon if no results were added at that time, i can do an if statment to check if value is "0.00" cause sometimes its inputed by the users as the "0.00" i was thinking if it was possible to put a checkbox by each table in the form and if the results were not "added" then the box can be ticked. then i can echo my commands to check if the checkbox is ticked or not. how easy is it to do this? Link to comment https://forums.phpfreaks.com/topic/196471-help-with-form-and-blank-fields/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.