**Clearing up php retrieval of form variables** the basics on how to best submit and retrieve form values in php focusing on checkboxes because they seem to be the most diffucult to understand. When posting form data to another page your naming convention makes all the difference in the world in your ease of access and clarity. Your Options simple syntax `name="simple_syntax"` array syntax `name="array_syntax[]"` multi-dimensional arrays `name="multi-dimensional_array_syntax[][]"` **simple syntax** <form name="av" method="post" action="<?php print $_SERVER['PHP_SELF']; ?>"> <p>Simple checkbox <input type="checkbox" name="simple_checkbox_1" value="simple_checkbox_1"/> <input type="checkbox" name="simple_checkbox_2" value="simple_checkbox_2"/> <input type="checkbox" name="simple_checkbox_3" value="simple_checkbox_3"/></p> </form> assuming each checkbox was checked your $_POST should …

Member Avatar
Member Avatar
+6 forum 6

The End.