I'm doing a project with dynamic forms, that is, the user (administrator) can make their own form (HTML / CSS), but when I go to get the form to the database I need to check if the names ( name
) of inputs
match the names of the completed form by the end user.
Example of a form stored in the database:
name: <input required name="name" type="text"><br>\r\n
nif: <input name="nif" type="text"><br>\r\n
<input type="submit" value="ENVIAR YO">
I would like to get the values of all attributes name
, remembering also (since it can not be predicted) that both can be stored with ""
( name="email"
) or ''
( name='email'
), the regex must cover both cases