My site users can create a custom form. All fields are stored in a database with a unique identifier. When someone visits the form, the field name attribute is a * ID * field, for example
<p>Your favorite band? <input type="text" name="field28"></p> <p>Your Favorite color? <input type="text" name="field30"></p>
After submitting the form, I use php to validate the form, but I donβt know how to get the value of $ _POST [field28] (or any number that has this field).
<? while($field = $query_formfields->fetch(PDO::FETCH_ASSOC)) { $id = $field[id];
If anyone can help me, this is really appreciated!
source share