Posts by Peterson Nunes • 121 points
2 posts
-
4
votes1
answer158
viewsA: Creating PHP object from HTML
With the suggestion of Fernando I came to the following conclusion: <?php $t = "<input type=\"text\" name=\"nomeDoCampo\" value=\"valorDoCampo\" peterson=\"bonito\" />"; $html =…
-
8
votes1
answer158
viewsQ: Creating PHP object from HTML
I imagine frameworks usually do the following to create a simple text field: $campoTexto = new CampoTexto("nomeDoCampo", "valorDoCampo"); $campoTexto->gera(); The result would be: <input…