How can PHP checkbox remember previous selection? -


When I run the code for the first time, all checkboxes are checked. When I uncheck some boxes and I submit it, the unchecked box has been checked again

  to resonate "strong> menu: & amp; Lt; / strong & gt; ";  

What is the best solution to remember the unwanted after sending the unselected box? Echo "
"; While ($ row = mysql_fetch_array ($ result_meno)) {echo "& lt; input type = 'checkbox' name = 'option_meno []' value = '". $ Line ['menu']. "'Check / & gt;" . $ Line ['meno']; Echo "
"; }

thanks


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -